de.grogra.mtg
Class MTGNode
java.lang.Object
de.grogra.graph.impl.Edge
de.grogra.graph.impl.Node
de.grogra.imp3d.objects.Null
de.grogra.imp3d.objects.ShadedNull
de.grogra.imp3d.objects.AxisBase
de.grogra.turtle.TurtleStep
de.grogra.turtle.Shoot
de.grogra.turtle.F
de.grogra.mtg.MTGNode
- All Implemented Interfaces:
- Transformation, VertexSequence.Vertex, Manageable, PersistenceCapable, Shareable, UserFields, XObject, TurtleModifier, Map, java.io.Serializable
- Direct Known Subclasses:
- MTGRoot
public class MTGNode
- extends F
- Since:
- 2011-11-24
- Author:
- yong
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class de.grogra.turtle.F |
F.Pattern |
Nested classes/interfaces inherited from interface de.grogra.util.Map |
Map.Chain |
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, MIME_TYPE, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELD |
Methods inherited from class de.grogra.imp3d.objects.ShadedNull |
getInterior, getShader, isTreatedAsInfinite, setBackShader, setColor, setColor, setFrontShader, setInterior, setMaterial, setShader, setShaders, setTreatedAsInfinite |
Methods inherited from class de.grogra.imp3d.objects.Null |
getLocalTransformation, getTransform, getTranslation, isTransforming, 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, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getGraph, getId, getIndex, getInstantiator, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setLayer, setMark, setName, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplace |
Methods inherited from class de.grogra.graph.impl.Edge |
addEdgeBits, getBitMark, getEdgeBits, 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 |
$TYPE
public static final Node.NType $TYPE
AA
public double AA
AA$FIELD
public static final Node.NType.Field AA$FIELD
Alpha
public double Alpha
Alpha$FIELD
public static final Node.NType.Field Alpha$FIELD
Azimut
public double Azimut
Azimut$FIELD
public static final Node.NType.Field Azimut$FIELD
BB
public double BB
BB$FIELD
public static final Node.NType.Field BB$FIELD
BotDia
public double BotDia
BotDia$FIELD
public static final Node.NType.Field BotDia$FIELD
Category
public int Category
Category$FIELD
public static final Node.NType.Field Category$FIELD
CC
public double CC
CC$FIELD
public static final Node.NType.Field CC$FIELD
DAB
public double DAB
DAB$FIELD
public static final Node.NType.Field DAB$FIELD
DAC
public double DAC
DAC$FIELD
public static final Node.NType.Field DAC$FIELD
dataFlag
public int dataFlag
dataFlag$FIELD
public static final Node.NType.Field dataFlag$FIELD
DBC
public double DBC
DBC$FIELD
public static final Node.NType.Field DBC$FIELD
DirectionPrimary
public Vector3d DirectionPrimary
DirectionPrimary$FIELD
public static final Node.NType.Field DirectionPrimary$FIELD
L1
public double L1
L1$FIELD
public static final Node.NType.Field L1$FIELD
L2
public double L2
L2$FIELD
public static final Node.NType.Field L2$FIELD
L3
public double L3
L3$FIELD
public static final Node.NType.Field L3$FIELD
Length
public double Length
Length$FIELD
public static final Node.NType.Field Length$FIELD
mtgClass
public java.lang.String mtgClass
mtgClass$FIELD
public static final Node.NType.Field mtgClass$FIELD
mtgClassID
public int mtgClassID
mtgClassID$FIELD
public static final Node.NType.Field mtgClassID$FIELD
mtgID
public int mtgID
mtgID$FIELD
public static final Node.NType.Field mtgID$FIELD
mtgScale
public int mtgScale
mtgScale$FIELD
public static final Node.NType.Field mtgScale$FIELD
Order
public int Order
Order$FIELD
public static final Node.NType.Field Order$FIELD
Position
public double Position
Position$FIELD
public static final Node.NType.Field Position$FIELD
stdAttFlag
public int stdAttFlag
stdAttFlag$FIELD
public static final Node.NType.Field stdAttFlag$FIELD
TopDia
public double TopDia
TopDia$FIELD
public static final Node.NType.Field TopDia$FIELD
XX
public double XX
XX$FIELD
public static final Node.NType.Field XX$FIELD
YY
public double YY
YY$FIELD
public static final Node.NType.Field YY$FIELD
ZZ
public double ZZ
ZZ$FIELD
public static final Node.NType.Field ZZ$FIELD
MTGNode
public MTGNode()
compoFather
public MTGNode compoFather()
- Returns compositional father of this node
- Returns:
- MTGNode
compoSons
public MTGNode[] compoSons()
- Return compositional sons of this node
compoSonsCount
public java.lang.Integer compoSonsCount()
- Get number of compositional sons.
- Returns:
- number of compositional sons.
compoSonsIds
public int[] compoSonsIds()
- Get the list of composition sons of this MTGNode.
copyStdAttributes
public static void copyStdAttributes(MTGNode oldNode,
MTGNode newNode)
findAdjacentMTG
public MTGNode findAdjacentMTG(boolean out,
int edgeBits,
java.lang.String entityClass,
int entityIndex)
- Find an adjacent node n to this one. The edgeBits are used to determine
if a relation between those two nodes exists (
Edge.testEdgeBits(int)
).
If out is true and this node is the source or if in is true and this node
is the target, n is returned. Thus, if in and out is true, any adjacent
node where the connecting edge matches the edgeBits is considered.
- Parameters:
in
- true if edges incoming to this node should be consideredout
- true if edges outgoing from this node should be considerededgeBits
- the type/types of edges to consider
- Returns:
- an adjacent node that matches the criteria or null if none found
getLength
public double getLength()
- Gets the length attribute value of the node.
- Returns:
- length
getNTypeImpl
protected Node.NType getNTypeImpl()
- Description copied from class:
Node
- This method returns the
Node.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 class F
- Returns:
- type describing the managed fields of the class of this node
getOrder
public int getOrder()
- Gets the order attribute value of the node.
- Returns:
- order
getType
public Node.NType getType()
hasAA
public boolean hasAA()
hasAlpha
public boolean hasAlpha()
hasAzimut
public boolean hasAzimut()
hasBB
public boolean hasBB()
hasBotDia
public boolean hasBotDia()
hasCategory
public boolean hasCategory()
hasCC
public boolean hasCC()
hasDAB
public boolean hasDAB()
hasDAC
public boolean hasDAC()
hasDBC
public boolean hasDBC()
hasDirectionPrimary
public boolean hasDirectionPrimary()
hasL1
public boolean hasL1()
hasL2
public boolean hasL2()
hasL3
public boolean hasL3()
hasLength
public boolean hasLength()
hasOrder
public boolean hasOrder()
hasPosition
public boolean hasPosition()
hasStdAtt
public boolean hasStdAtt(int mask)
hasTopDia
public boolean hasTopDia()
hasXX
public boolean hasXX()
hasYY
public boolean hasYY()
hasZZ
public boolean hasZZ()
height
public int height(MTGNode endNode)
throws MTGError.MTGPlantFrameException
- Number of successor or branch edges from this node to an end node.
- Parameters:
endNodeId
-
- Returns:
-
- Throws:
MTGError.MTGPlantFrameException
newInstance
protected 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 class F
- Returns:
- new instance of class of this node
order
public int order(MTGNode endNode)
throws MTGError.MTGPlantFrameException
- Number of branch edges from this node to an end node.
- Parameters:
endNodeId
-
- Returns:
-
- Throws:
MTGError.MTGPlantFrameException
setDirectoryPrimary
public void setDirectoryPrimary(Vector3d dirp)
setStdAttFlagOff
public void setStdAttFlagOff(int mask)
setStdAttFlagOn
public void setStdAttFlagOn(int mask)
topoSonNodes
public MTGNode[] topoSonNodes(int edgeType)
- Get the list of topological sons with specified edge type connection of this MTGNode.
topoSons
public int[] topoSons(int edgeType)
- Get the list of topological sons with specified edge type connection of this MTGNode.