camera3d
Class VcContent

java.lang.Object
  extended bycamera3d.VcObject
      extended bycamera3d.VcContent
All Implemented Interfaces:
RotatableObject, ScalableObject, TranslatableObject

public class VcContent
extends VcObject

Holds Geometry content that can be added to scene graph.

Author:
Fábio Roberto de Miranda

Field Summary
static int DEGRADE_BOX
          Degradation mode that shows a box instead of the geometry.
static int DEGRADE_NONE
          No degradation mode, shows default geometry.
static int DEGRADE_SIMPLIFIED
          Degradation mode that shows simplified geometry.
 
Fields inherited from class camera3d.VcObject
transformationMode
 
Constructor Summary
VcContent()
          Creates content object.
 
Method Summary
 void addNode(javax.media.j3d.Node n)
          Adds a Node to this object branch graph.
 javax.media.j3d.Node[] getContent()
          Returns an array with all nodes contained.
 int getDegradeMode()
           
 javax.swing.Icon getIcon()
          Returns the Icon associated with content objects.
static int getInstanceCounter()
          Returns the number of objects instatiated so far.
 void select()
          By calling this object this object shows himself "selected", what is indicated by some visual modifications.
 void setDegradeMode(int mode)
          Sets degradation mode, a resource to show a alternative geometry during transformations.
 void setIcon(javax.swing.Icon contentIcon)
          Sets the Icon associated with content objects.
 void setOngoingTransformation(boolean transforming)
          Used to indicate whether this object is undergoing a transformation or not, to display some visual cues (axis, boundingBoxes, etc)
 boolean underOngoingTransformation()
          Returns flag that indicates whether this object is undergoing a transformation or not.
 void unselect()
           
 
Methods inherited from class camera3d.VcObject
addChangeListener, addVcChild, detach, getBoundingBox, getBoundingBoxInVWorld, getBranchGroup, getChildrenList, getInfo, getLabel, getLocalToVworld, getParentRotScaleTG, getParentTransTG, getTooltipText, getTransforms, getTranslation, getXAngleDeg, getXAngleRad, getXScale, getXTranslation, getYAngleDeg, getYAngleRad, getYScale, getYTranslation, getZAngleDeg, getZAngleRad, getZScale, getZTranslation, hideBoundingBox, isInvalidData, isLive, isSelected, printTransform, removeAllChangeListeners, removeAllNodes, removeBoundingBox, removeChangeListener, removeNode, removeVcChild, removeVcChild, rotateAbsolute, rotateEuler, rotateEulerLocal, rotateEulerLocalX, rotateEulerLocalY, rotateEulerLocalZ, rotateEulerX, rotateEulerY, rotateEulerZ, rotateLocal, scaleRelative, scaleX, scaleXRelative, scaleY, scaleYRelative, scaleZ, scaleZRelative, setAbsoluteScale, setGlobalAxisVisible, setLabel, setLocalAxisVisible, setOngoingTransformationMode, setRelativeScale, setTooltipText, setTransform, setTransformsToIdentity, showBoundingBox, translate, translate, translateLocal, updateData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEGRADE_NONE

public static final int DEGRADE_NONE
No degradation mode, shows default geometry.

See Also:
Constant Field Values

DEGRADE_BOX

public static final int DEGRADE_BOX
Degradation mode that shows a box instead of the geometry.

See Also:
Constant Field Values

DEGRADE_SIMPLIFIED

public static final int DEGRADE_SIMPLIFIED
Degradation mode that shows simplified geometry.

See Also:
Constant Field Values
Constructor Detail

VcContent

public VcContent()
Creates content object. No geometry is created at this time, for including geometry use the addNode method.

Method Detail

getInstanceCounter

public static int getInstanceCounter()
Returns the number of objects instatiated so far.


addNode

public void addNode(javax.media.j3d.Node n)
Adds a Node to this object branch graph.

Overrides:
addNode in class VcObject
Parameters:
n - Node to be added.

setDegradeMode

public void setDegradeMode(int mode)
Sets degradation mode, a resource to show a alternative geometry during transformations.


getDegradeMode

public int getDegradeMode()

select

public void select()
Description copied from class: VcObject
By calling this object this object shows himself "selected", what is indicated by some visual modifications.

Overrides:
select in class VcObject

unselect

public void unselect()
Overrides:
unselect in class VcObject

setOngoingTransformation

public void setOngoingTransformation(boolean transforming)
Used to indicate whether this object is undergoing a transformation or not, to display some visual cues (axis, boundingBoxes, etc)

Overrides:
setOngoingTransformation in class VcObject

underOngoingTransformation

public boolean underOngoingTransformation()
Description copied from class: VcObject
Returns flag that indicates whether this object is undergoing a transformation or not.

Overrides:
underOngoingTransformation in class VcObject

getIcon

public javax.swing.Icon getIcon()
Returns the Icon associated with content objects.

Specified by:
getIcon in class VcObject

setIcon

public void setIcon(javax.swing.Icon contentIcon)
Sets the Icon associated with content objects.

Specified by:
setIcon in class VcObject

getContent

public javax.media.j3d.Node[] getContent()
Returns an array with all nodes contained.



Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.