java.lang.Object
de.grogra.graph.impl.Edge
de.grogra.graph.impl.Node
de.grogra.imp3d.objects.Null
de.grogra.imp3d.objects.ShadedNull
- All Implemented Interfaces:
Transformation
,Manageable
,PersistenceCapable
,Shareable
,UserFields
,XObject
,Map
,Serializable
- Direct Known Subclasses:
AxisBase
,CSGNode
,Instance3D
,MeshNode
,NullWithShaderNode
,NURBSSurface
,Patch
,Plane
,Polygon
,PrismRectangular
,Sky
,Sphere
,SphereSegmentSolid
,Supershape
,TextBlock
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.graph.impl.Node
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Node.NType
static final int
protected Interior
static final Node.NType.Field
protected boolean
static final Node.NType.Field
protected Shader
static final Node.NType.Field
static final Node.NType.Field
static final int
Fields inherited from class de.grogra.imp3d.objects.Null
transform, transform$FIELD, TRANSFORMING_MASK, transforming$FIELD
Fields inherited from class de.grogra.graph.impl.Node
ADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MAX_RESOLUTION, MIME_TYPE, MIN_RESOLUTION, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELD, RESOLUTION_BIT, RESOLUTION_MASK, resolution$FIELD
Fields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Node.NType
This method returns theNode.NType
which describes the managed fields of the class of this node.double
Calculates the area of an object.int
double
Calculates the volume of an object.boolean
boolean
protected Node
This method returns a new instance of the class of this node.void
setBackShader
(Shader mat) void
setColor
(float r, float g, float b) void
setColor
(int rgb) void
setFrontShader
(Shader mat) void
setInterior
(Interior value) void
setMaterial
(Shader mat) void
setRenderAsWireframe
(boolean value) void
void
setShaders
(Shader front, Shader back) void
setTreatedAsInfinite
(boolean v) Methods inherited from class de.grogra.imp3d.objects.Null
getLocalTransformation, getTransform, getTranslation, isTransforming, postTransform, preTransform, setRotation, setScale, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransforming, setTranslation
Methods inherited from class de.grogra.graph.impl.Node
addEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupFrom, dupnew, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIgnored, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getResolution, getShort, getSource, getStamp, getSuccessor, getSymbol, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setIgnored, setLayer, setMark, setName, setResolution, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplace
Methods inherited from class de.grogra.graph.impl.Edge
addEdgeBits, getBitMark, getEdgeBits, getEdgeKeys, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBits
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.grogra.persistence.PersistenceCapable
getBitMark, getObjectMark, setBitMark, setObjectMark
-
Field Details
-
INFINITE_MASK
public static final int INFINITE_MASK- See Also:
-
USED_BITS
public static final int USED_BITS- See Also:
-
renderAsWireframe
protected boolean renderAsWireframe -
shader
-
interior
-
$TYPE
-
renderAsWireframe$FIELD
-
shader$FIELD
-
interior$FIELD
-
treatedAsInfinite$FIELD
-
-
Constructor Details
-
ShadedNull
public ShadedNull() -
ShadedNull
-
-
Method Details
-
getSymbolColor
public int getSymbolColor()- Overrides:
getSymbolColor
in classNode
-
setColor
public void setColor(int rgb) -
getSurfaceArea
public double getSurfaceArea()Calculates the area of an object. Keep in mind, that this function is only implemented for basic primitive object. For all other objects it will return zero.- Returns:
- area
-
getVolume
public double getVolume()Calculates the volume of an object. Keep in mind, that this function is only implemented for basic primitive object. For all other objects it will return zero.- Returns:
- volume
-
setColor
public void setColor(float r, float g, float b) -
setMaterial
-
setFrontShader
-
setBackShader
-
setShaders
-
setShader
-
getNTypeImpl
Description copied from class:Node
This method returns theNode.NType
which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
getNTypeImpl
in classNull
- Returns:
- type describing the managed fields of the class of this node
-
newInstance
Description copied from class:Node
This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
newInstance
in classNull
- Returns:
- new instance of class of this node
-
isRenderAsWireframe
public boolean isRenderAsWireframe() -
setRenderAsWireframe
public void setRenderAsWireframe(boolean value) -
getShader
-
getInterior
-
setInterior
-
isTreatedAsInfinite
public boolean isTreatedAsInfinite() -
setTreatedAsInfinite
public void setTreatedAsInfinite(boolean v)
-