Package mgui.interfaces.shapes
Class SectionSet3DInt
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.shapes.InterfaceShape
mgui.interfaces.shapes.Shape3DInt
mgui.interfaces.shapes.SectionSet3DInt
- All Implemented Interfaces:
java.awt.datatransfer.Transferable
,java.lang.Comparable<InterfaceShape>
,AttributeListener
,AttributeObject
,InterfaceView3DObject
,InterfaceObject
,PersistentObject
,VariableObject
,PopupMenuObject
,NamedObject
,InterfaceQueryObject
,InterfaceShapeQueryObject
,ShapeSet
,ShapeListener
,VertexDataColumnListener
,InterfaceTransferable
,TreeObject
,CleanableObject
,XMLObject
,IconObject
,org.jogamp.java3d.GeometryUpdater
- Direct Known Subclasses:
MorphSections3DInt
public class SectionSet3DInt extends Shape3DInt implements ShapeListener, ShapeSet, InterfaceView3DObject
Represents a set of parallel sections, based upon a reference plane
(thisShape), and a spacing value. Stores 2D shape sets in a value map, such
that the value is an integer i specifying the section at i * spacing units
from the reference plane.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from class mgui.interfaces.shapes.Shape3DInt
Shape3DInt.VertexShapeTransformer
Nested classes/interfaces inherited from class mgui.interfaces.shapes.InterfaceShape
InterfaceShape.VertexDataSet
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields Modifier and Type Field Description boolean
blnUpdate
Rect2D
boundBox2D
org.jogamp.java3d.ModelClip
clip_planes
ValueMap
scene3DNodes
java.util.HashMap<java.lang.Integer,ShapeSet2DInt>
sections
AttributeList
shapeAttr
double
width
Fields inherited from class mgui.interfaces.shapes.Shape3DInt
boundBox, boundBoxNode, bounds_group, bounds_shape, boundSphere, centerPt, children2D, creatable_scene_node, drawEngine2D, group_node, has_3d_node, hasCameraListener, idStr, nodeListener, parent2D, scene3DObject, sceneNode, selected_vertices_group, shape_group, shape3d, vertex_shape_transformer, vertices_group
Fields inherited from class mgui.interfaces.shapes.InterfaceShape
attributes, constraints, data_columns, icon, ID, is_auxiliary, is_registered, isDrawable, isImageShape, isLight, isOverridden, last_column_added, last_column_changed, last_column_removed, linked_colour_maps, loader_options, notifyListeners, overrideAttr, parent_set, selected_nodes, shapeListeners, vertex_data, writer_options, xml_current_column, xml_current_loader, xml_current_shape, xml_current_shape_options, xml_current_type, xml_current_url, xml_is_vertex_data, xml_root_dir
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description SectionSet3DInt()
SectionSet3DInt(java.lang.String sName, Plane3D refPlane, float spacing)
SectionSet3DInt(java.lang.String sName, Plane3D refPlane, float spacing, double sectWidth)
-
Method Summary
Modifier and Type Method Description ShapeSet2DInt
addSection(int section, boolean updateShape)
Add a section shape set to this section set.boolean
addShape(InterfaceShape shape)
Adds a shape to this setvoid
addShape2D(Shape2DInt thisShape, int section, boolean update)
void
addShape2D(Shape2DInt shape, int section, boolean updateShape, boolean updateListeners)
Adds a 2D shape to the section shape set at indexsection
.void
addUnionSet(SectionSet3DInt uSet, boolean init)
void
addUnionSet(ShapeSet2DInt thisSet, int section)
void
addUnionSet(ShapeSet2DInt thisSet, int section, boolean updateShape, boolean updateListeners)
void
attributeUpdated(AttributeEvent e)
Responds to an update in one of this shape's attributes.boolean
crossesPlane(Plane3D plane)
Convenience method which determines whether this shape crossplane
.java.util.ArrayList<Shape2DInt>
get2DShapes()
Returns a list of all 2D shapes in this section setjava.util.ArrayList<Shape2DInt>
get2DShapes(boolean recurse)
Returns a list of all 2D shapes in this section setboolean
getApplyClip()
Rect2D
getBoundBox2D()
float
getClipDistDown()
Gets the downwards clipping distance for this section setfloat
getClipDistUp()
Gets the upwards clipping distance for this section setorg.jogamp.java3d.ModelClip
getClipPlanes(int section)
Get a set of twoModelClip
nodes parallel to this section's plane, at distances defined bygetClipDistUp()
andgetClipDistDown()
.int
getClosestSection(org.jogamp.vecmath.Point3f point)
Returns the index of the section in this set which is closest topoint
.int
getFirstSection()
Shape
getGeometryInstance()
Returns an instance of thisInterfaceShape
's geometry class.int
getIndexOf(InterfaceShape section_set)
Returns the index ofsection_set
in this set.SectionSet3DInt
getInitSectionSet()
boolean
getInvertClip()
java.util.Iterator
getIterator()
InterfaceShape
getLastAdded()
int
getLastInsert()
InterfaceShape
getLastInserted()
InterfaceShape
getLastModified()
InterfaceShape
getLastMoved()
InterfaceShape
getLastRemoved()
int
getLastSection()
java.lang.String
getLocalName()
Returns the local name associated with this XML object.java.util.ArrayList<InterfaceShape>
getMembers()
Returns a copy of this set's member list.Plane3D
getPlaneAt(int section)
Return the plane corresponding to the specified sectionPlane3D
getRefPlane()
Gets the reference plane (i.e., at index 0) for this section set.org.jogamp.java3d.BranchGroup
getScene3DObject(ShapeSelectionSet selSet)
double
getSectionDist(int i)
Gets the distance of the section plane at indexi
from the reference plance (i.e., at index 0).int
getSectionForShape(Shape2DInt shape)
int
getSectionOf(ShapeSet2DInt set)
Returns the index ofset
in this section set object, if it exists.Shape2DInt
getShape2D(Plane3D plane, float above_dist, float below_dist)
To be overridden by subclasses implementing a 2D representationShape2DInt
getShape2DInt(Plane3D p, float above_dist, float below_dist, boolean listen)
Determines a 2D shape which is the projection of this 3D shape ontoplane
, within the projection limits defined byabove_dist
andbelow_dist
.ShapeSet2DInt
getShape2DType(Shape2DInt shape)
ShapeSet2DInt
getShape2DType(Shape2DInt shape, boolean recurse)
int
getShapeCount()
java.util.Set<InterfaceShape>
getShapeSet()
ShapeSet2DInt
getShapeSet(int section)
ShapeSet2DInt
getShapeSet(int section, double sectionWidth)
Return a ShapeSet2DInt of all objects intersected by the current section plane and its upper and lower bounds.ShapeSet3DInt
getShapeSet3DInt()
ShapeSet3DInt
getShapeSet3DInt(ShapeSelectionSet selSet)
boolean
getShowSection3D()
int
getSize()
Returns the number of shapes in this setfloat
getSpacing()
java.util.Set<ShapeSet>
getSubSets()
boolean
getUpdateable()
java.util.ArrayList<org.jogamp.vecmath.Point3f>
getVertices()
View3D
getView3D()
TODO: update coordinates to according to model's coordinate system public void setModel(ShapeModel3D m){ if (model == m) return; if (model != null) removeShapeListener(model); model = m; setID(model.idFactory.getID()); addShapeListener(model); Iteratoritr = sections.values().iterator(); while (itr.hasNext()) itr.next().setModel(m); } View3D
getView3D(double distance)
java.lang.String
getXML(int tab, XMLObject.XMLType type)
boolean
hasClipPlanes()
boolean
hasSection(int i)
Checks whether a section exists at indexi
.boolean
hasSections()
Checks whether any sections have yet been set for this section set.boolean
hasShape(InterfaceShape s)
Not implemented.boolean
hasShape(InterfaceShape s, boolean recurse)
Not implemented.protected void
init()
boolean
isAncestorSet(ShapeSet set)
Determines whetherset
is an ancestor set of this set; i.e., whether this set is a subset ofset
.InterfaceTreeNode
issueTreeNode()
Issues a new tree node for this ShapeInt.boolean
moveShapeBefore(InterfaceShape shape, InterfaceShape target)
Moves the order ofshape
to the spot beforetarget
.boolean
needsRedraw(Attribute<?> a)
Returnstrue
if a change toattribute
will require a redraw of this shape.boolean
removeSection(int section, boolean updateShape, boolean updateListeners)
Remove the section at indexsection
.void
removeSelectionSet(ShapeSelectionSet selSet)
void
removeShape(InterfaceShape shape)
Removes a shape from this setvoid
removeShape(Shape2DInt shape, boolean updateShape, boolean updateListeners)
void
setApplyClip(boolean apply)
void
setBoundBox2D(Rect2D thisBox)
void
setClipDistDown(float dist)
Sets the downwards clipping distance for this section setvoid
setClipDistUp(float dist)
Sets the upwards clipping distance for this section setvoid
setFromSectionSet(SectionSet3DInt thisSet)
protected void
setIcon()
void
setInvertClip(boolean apply)
void
setRefPlane(Plane3D thisPlane)
Sets the reference plane (i.e., at index 0) for this section set.void
setScene3DObject()
Sets this ShapeInt's Java3D scene node from its current geometry and rendering attributes.void
setScene3DObject(boolean make_live)
Sets this ShapeInt's Java3D scene node from its current geometry and rendering attributes.void
setScene3DObject(ShapeSelectionSet filter, boolean make_live)
void
setSpacing(float s)
Sets the spacing distance for this section set.void
setTreeNode(InterfaceTreeNode treeNode)
Constructs a tree node from this shape.void
setUnit(SpatialUnit unit)
Does nothing forSectionSet3DInt
; the unit is set by the parent set (or the the default fromInterfaceEnvironment
, if no parent is set.void
setUpdateable(boolean b)
void
shapeUpdated(ShapeEvent e)
A shape that this object is listening to has been updated.java.lang.String
toString()
void
updateLightShapes()
void
updateShape()
Updates the geometric bounds of this ShapeInt.void
updateShape(ShapeSet2DInt thisSet, int section)
boolean
validateNodes()
void
writeXML(int tab, java.io.Writer writer, XMLOutputOptions options, ProgressUpdater progress_bar)
Writes the XML representation of this object to file.Methods inherited from class mgui.interfaces.shapes.Shape3DInt
addShape2DChild, clear2DChildren, contains, copyAttributes, deregisterCameraListener, destroy, draw2D, drawShape2D, drawShape2D, drawShape2D, fireChildren2D, fireChildren2DModified, fireShapeListeners, fireShapeModified, geometryChanged, getAlpha, getBoundBox, getBoundBoxNode, getBoundSphere, getCameraListener, getCenterOfGravity, getClosestVertex, getDimensions, getDTD, getFullName, getGeometricCenter, getGeometry, getIcon, getInheritingAttribute, getLabelColour, getLabelFont, getLabelScale, getLineColour, getLineStyle, getModifiedAttribute, getParent2D, getParentAttribute, getPopupMenu, getPopupMenuLength, getProximity, getScene3DObject, getShape, getShape2D, getShape2DInt, getShapeSceneNode, getShapeSceneNode, getShortXML, getTransferData, getTransferDataFlavors, getTreeLabel, getVertex, getVertexAppearance, getVertexColour, getVertexColour, getVertexCount, getVertexScale, getVertexScale, getVertexSelection, handlePopupEvent, hasAlpha, hasAlpha, hasCameraListener, hasParentShape, isDataFlavorSupported, isHeritableAttribute, isInheritingAttribute, isLive, performTransfer, registerCameraListener, releaseScene3DChildren, removeShape2DChild, setAlpha, setBoundBoxNode, setCreatableSceneNode, setCurrentColumn, setGeometry, setGraphic3DPopupMenu, setLabelColour, setLabelFont, setLabelScale, setLineStyle, setLive, setParent2D, setSelectedVertices, setShape, setShapeSceneNode, setShowSelectedVertices, setVertexSelection, showPopupMenu, showVertices, showVertices, updateChildren2D, updateData, updateSelectedVertices, updateVertices
Methods inherited from class mgui.interfaces.shapes.InterfaceShape
_init, addDataLink, addShapeListener, addVertexData, addVertexData, addVertexData, addVertexData, addVertexData, addVertexData, addVertexData, addVertexData, addVertexData, cleanTreeNodes, compareTo, finalizeAfterXML, fromVariable, getAllVertexData, getAttribute, getAttributes, getAttributeValue, getByReferenceUrls, getColourMap, getColourMap, getConstraint, getConstraints, getCurrentColumn, getCurrentDataColumn, getCurrentVertexData, getDataLink, getDataMax, getDataMin, getDatumAtVertex, getDatumAtVertex, getDefaultColourMap, getFileLoader, getFileWriter, getID, getInheritedAttribute, getInheritedAttributes, getInheritedAttributeValue, getLastColumnAdded, getLastColumnChanged, getLastColumnRemoved, getLegalName, getLinkedVertexData, getLinkedVertexDatum, getLoaderOptions, getModel, getName, getNameMap, getNameMap, getNonLinkedDataColumns, getObjectIcon, getParentSet, getPopupMenu, getSourceURL, getUnit, getUrlReference, getVariables, getVariableType, getVariableValue, getVariableValues, getVertexData, getVertexData, getVertexDataColumn, getVertexDataColumnCount, getVertexDataColumnNames, getVertexDataColumns, getVertexDataMap, getWriterOptions, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, hasAttribute, hasColumn, hasData, inheritAttributesFromParent, isAuxiliaryShape, isAuxiliaryShape, isDestroyed, isDrawable, isImageShape, isLegalName, isLight, isSelectable, isVisible, newVertexData, queryObject, queryShapeAtVertex, register, removeColourMap, removeDataLink, removeNameMap, removeShapeListener, removeVertexData, renameVertexDataColumn, setAttribute, setAttributes, setColourMap, setColourMap, setConstraint, setCurrentColumn, setDataMax, setDataMax, setDataMax, setDataMin, setDataMin, setDataMin, setDatumAtVertex, setDatumAtVertex, setDatumAtVertex, setDatumAtVertex, setDefaultColourMap, setDefaultColourMap, setFileLoader, setFileLoader, setFileWriter, setID, setLoaderOptions, setName, setNameMap, setOverride, setParentSet, setSelectable, setUrlReference, setVariableValues, setVariableValues, setVertexData, setVertexData, setVertexData, setVertexDataMap, setVisible, setWriterOptions, setXMLRoot, show2D, show2D, show3D, show3D, showData, showData, supportsVariableType, toVariable, unsetOverride, updateDataColumns, vertexDataColumnChanged, vertexDataColumnColourMapChanged, writeXML, writeXML
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, updateTreeNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface mgui.interfaces.util.CleanableObject
clean
Methods inherited from interface mgui.interfaces.NamedObject
getName, setName
Methods inherited from interface mgui.interfaces.shapes.util.ShapeListener
destroy, isDestroyed
Methods inherited from interface mgui.interfaces.shapes.ShapeSet
getFullName, getModel, getUnit, isSelectable, isVisible, show2D, show3D
-
Field Details
-
sections
-
scene3DNodes
-
width
public double width -
boundBox2D
-
blnUpdate
public boolean blnUpdate -
shapeAttr
-
clip_planes
public org.jogamp.java3d.ModelClip clip_planes
-
-
Constructor Details
-
SectionSet3DInt
public SectionSet3DInt() -
SectionSet3DInt
-
SectionSet3DInt
-
-
Method Details
-
getGeometryInstance
Description copied from class:InterfaceShape
Returns an instance of thisInterfaceShape
's geometry class.- Overrides:
getGeometryInstance
in classShape3DInt
- Returns:
-
getIndexOf
Returns the index ofsection_set
in this set.- Specified by:
getIndexOf
in interfaceShapeSet
- Returns:
- index of shape, or -1 if it is not in this set
-
getClosestSection
public int getClosestSection(org.jogamp.vecmath.Point3f point)Returns the index of the section in this set which is closest topoint
.- Parameters:
point
-- Returns:
-
setUnit
Does nothing forSectionSet3DInt
; the unit is set by the parent set (or the the default fromInterfaceEnvironment
, if no parent is set.- Specified by:
setUnit
in interfaceShapeSet
- Overrides:
setUnit
in classInterfaceShape
-
isAncestorSet
Description copied from interface:ShapeSet
Determines whetherset
is an ancestor set of this set; i.e., whether this set is a subset ofset
.- Specified by:
isAncestorSet
in interfaceShapeSet
- Returns:
-
setIcon
protected void setIcon()- Overrides:
setIcon
in classShape3DInt
-
init
protected void init()- Overrides:
init
in classShape3DInt
-
getMembers
Returns a copy of this set's member list.- Specified by:
getMembers
in interfaceShapeSet
- Returns:
- a list of members
-
getSectionForShape
-
getShowSection3D
public boolean getShowSection3D() -
getSectionOf
Returns the index ofset
in this section set object, if it exists. Otherwise, returnsInteger.MAX_VALUE
.- Parameters:
set
- The set to check- Returns:
- The index of
set
, orInteger.MAX_VALUE
if it is not in this section set.
-
attributeUpdated
Description copied from class:Shape3DInt
Responds to an update in one of this shape's attributes.Subclasses should override and call this super method AFTER handling the attribute change appropriately. Subclasses should also override needsRedraw() to indicate whether the scene node should be regenerated.
- Specified by:
attributeUpdated
in interfaceAttributeListener
- Overrides:
attributeUpdated
in classShape3DInt
- Parameters:
e
- anAttributeEvent
specifying which attribute has been changed
-
needsRedraw
Description copied from class:InterfaceShape
Returnstrue
if a change toattribute
will require a redraw of this shape.- Overrides:
needsRedraw
in classShape3DInt
- Returns:
-
getSize
public int getSize()Description copied from interface:ShapeSet
Returns the number of shapes in this set -
getView3D
TODO: update coordinates to according to model's coordinate system public void setModel(ShapeModel3D m){ if (model == m) return; if (model != null) removeShapeListener(model); model = m; setID(model.idFactory.getID()); addShapeListener(model); Iteratoritr = sections.values().iterator(); while (itr.hasNext()) itr.next().setModel(m); } - Specified by:
getView3D
in interfaceInterfaceView3DObject
-
getView3D
-
setUpdateable
public void setUpdateable(boolean b) -
getUpdateable
public boolean getUpdateable() -
getBoundBox2D
-
setBoundBox2D
-
getRefPlane
Gets the reference plane (i.e., at index 0) for this section set. -
setRefPlane
Sets the reference plane (i.e., at index 0) for this section set.- Parameters:
thisPlane
-
-
getSpacing
public float getSpacing() -
setSpacing
public void setSpacing(float s)Sets the spacing distance for this section set.- Parameters:
s
-
-
getApplyClip
public boolean getApplyClip() -
setApplyClip
public void setApplyClip(boolean apply) -
getClipDistUp
public float getClipDistUp()Gets the upwards clipping distance for this section set -
setClipDistUp
public void setClipDistUp(float dist)Sets the upwards clipping distance for this section set- Parameters:
dist
-
-
getClipDistDown
public float getClipDistDown()Gets the downwards clipping distance for this section set -
setClipDistDown
public void setClipDistDown(float dist)Sets the downwards clipping distance for this section set- Parameters:
dist
-
-
getInvertClip
public boolean getInvertClip() -
setInvertClip
public void setInvertClip(boolean apply) -
getClipPlanes
public org.jogamp.java3d.ModelClip getClipPlanes(int section)Get a set of twoModelClip
nodes parallel to this section's plane, at distances defined bygetClipDistUp()
andgetClipDistDown()
.If the clipping nodes already exist, they will be updated by this method.
- Parameters:
section
-parent
- test whether parent is already the current parent; otherwise must create new node- Returns:
-
hasClipPlanes
public boolean hasClipPlanes() -
addShape2D
-
addShape2D
public void addShape2D(Shape2DInt shape, int section, boolean updateShape, boolean updateListeners)Adds a 2D shape to the section shape set at indexsection
.- Parameters:
shape
-section
-updateShape
-updateListeners
-
-
addSection
Add a section shape set to this section set.- Parameters:
section
-updateShape
-- Returns:
-
removeSection
public boolean removeSection(int section, boolean updateShape, boolean updateListeners)Remove the section at indexsection
.- Parameters:
section
-updateShape
-updateListeners
-- Returns:
-
getShapeSet
-
getShapeSet
Return a ShapeSet2DInt of all objects intersected by the current section plane and its upper and lower bounds.- Parameters:
section
-sectionWidth
-- Returns:
-
issueTreeNode
Description copied from class:Shape3DInt
Issues a new tree node for this ShapeInt. Creates the node and then callsInterfaceShape.setTreeNode(mgui.interfaces.trees.InterfaceTreeNode)
to construct it.setTreeNode
should be overridden by subclasses.- Specified by:
issueTreeNode
in interfaceTreeObject
- Overrides:
issueTreeNode
in classShape3DInt
- Returns:
- a new
InterfaceTreeNode
, which is an instance ofShape3DTreeNode
.
-
setTreeNode
Description copied from class:InterfaceShape
Constructs a tree node from this shape. Adds anAttributeTreeNode
via thesuper
method, and also adds a node to display the vertex-wise data columns associated with this ShapeInt.If overriding this method, subclass implementations should first call this super method to initialize the node and provide a basic construction.
- Specified by:
setTreeNode
in interfaceTreeObject
- Overrides:
setTreeNode
in classInterfaceShape
- Parameters:
treeNode
- the tree node to construct
-
hasSection
public boolean hasSection(int i)Checks whether a section exists at indexi
.- Parameters:
i
-- Returns:
-
hasSections
public boolean hasSections()Checks whether any sections have yet been set for this section set.- Returns:
-
getSectionDist
public double getSectionDist(int i)Gets the distance of the section plane at indexi
from the reference plance (i.e., at index 0).- Parameters:
i
-- Returns:
-
toString
public java.lang.String toString()- Overrides:
toString
in classShape3DInt
-
shapeUpdated
Description copied from interface:ShapeListener
A shape that this object is listening to has been updated. The specific type of event is defined by ShapeEvent.EventType.- Specified by:
shapeUpdated
in interfaceShapeListener
-
getShape2DType
-
getShape2DType
-
addUnionSet
-
addUnionSet
public void addUnionSet(ShapeSet2DInt thisSet, int section, boolean updateShape, boolean updateListeners) -
addUnionSet
-
updateShape
-
removeShape
Description copied from interface:ShapeSet
Removes a shape from this set- Specified by:
removeShape
in interfaceShapeSet
-
removeShape
-
getShape2DInt
Description copied from class:Shape3DInt
Determines a 2D shape which is the projection of this 3D shape ontoplane
, within the projection limits defined byabove_dist
andbelow_dist
.- Overrides:
getShape2DInt
in classShape3DInt
above_dist
- The projection limit above the plane
-
getShape2D
Description copied from class:Shape3DInt
To be overridden by subclasses implementing a 2D representation- Overrides:
getShape2D
in classShape3DInt
- Parameters:
plane
- Plane on which to renderabove_dist
- Distance above plane within which to project a shapebelow_dist
- Distance below plane within which to project a shape- Returns:
-
crossesPlane
Description copied from class:Shape3DInt
Convenience method which determines whether this shape crossplane
.- Overrides:
crossesPlane
in classShape3DInt
- Returns:
-
removeSelectionSet
-
getScene3DObject
- Overrides:
getScene3DObject
in classShape3DInt
-
setScene3DObject
public void setScene3DObject()Description copied from class:Shape3DInt
Sets this ShapeInt's Java3D scene node from its current geometry and rendering attributes. This node should be retrieved using theShape3DInt.getShapeSceneNode()
method. A scene node will only created if one of these conditions is met:- The shape is auxiliary (i.e., not a model shape, but a helper shape such as a section polygon)
- The shape is associated with a ShapeModel3D, and this model is live (is associated with at least one Java3D scene graph).
- Overrides:
setScene3DObject
in classShape3DInt
-
setScene3DObject
public void setScene3DObject(boolean make_live)Description copied from class:Shape3DInt
Sets this ShapeInt's Java3D scene node from its current geometry and rendering attributes. This node should be retrieved using theShape3DInt.getShapeSceneNode()
method. A scene node will only created if one of these conditions is met:- The shape is auxiliary (i.e., not a model shape, but a helper shape such as a section polygon)
- The shape is associated with a ShapeModel3D, and this model is live (is associated with at least one Java3D scene graph).
- Overrides:
setScene3DObject
in classShape3DInt
-
setScene3DObject
-
getVertices
public java.util.ArrayList<org.jogamp.vecmath.Point3f> getVertices()- Overrides:
getVertices
in classShape3DInt
-
getShapeSet3DInt
-
getPlaneAt
Return the plane corresponding to the specified section- Parameters:
section
-- Returns:
- Plane at this section
-
getShapeSet3DInt
-
updateShape
public void updateShape()Description copied from class:Shape3DInt
Updates the geometric bounds of this ShapeInt. Does not callShape3DInt.setScene3DObject()
.- Overrides:
updateShape
in classShape3DInt
-
getFirstSection
public int getFirstSection() -
getLastSection
public int getLastSection() -
setFromSectionSet
-
getInitSectionSet
-
validateNodes
public boolean validateNodes() -
getIterator
public java.util.Iterator getIterator() -
getShapeCount
public int getShapeCount() -
updateLightShapes
public void updateLightShapes() -
addShape
Description copied from interface:ShapeSet
Adds a shape to this set -
moveShapeBefore
Description copied from interface:ShapeSet
Moves the order ofshape
to the spot beforetarget
.- Specified by:
moveShapeBefore
in interfaceShapeSet
- Returns:
-
getShapeSet
- Specified by:
getShapeSet
in interfaceShapeSet
-
get2DShapes
Returns a list of all 2D shapes in this section set- Returns:
-
get2DShapes
Returns a list of all 2D shapes in this section set- Returns:
-
getSubSets
- Specified by:
getSubSets
in interfaceShapeSet
-
hasShape
Not implemented. -
hasShape
Not implemented. -
getLocalName
public java.lang.String getLocalName()Description copied from interface:XMLObject
Returns the local name associated with this XML object.- Specified by:
getLocalName
in interfaceXMLObject
- Overrides:
getLocalName
in classShape3DInt
- Returns:
-
getXML
- Overrides:
getXML
in classInterfaceShape
-
writeXML
public void writeXML(int tab, java.io.Writer writer, XMLOutputOptions options, ProgressUpdater progress_bar) throws java.io.IOExceptionDescription copied from interface:XMLObject
Writes the XML representation of this object to file. The basic contract for this method is that it should not write a newline character at its start or end. The default format ofXMLFormat.Ascii
will be used.- Specified by:
writeXML
in interfaceXMLObject
- Overrides:
writeXML
in classInterfaceShape
- Parameters:
tab
- The number of tabs to place before the XML textwriter
- The writeroptions
- XMLOutputOptions defining the write parametersprogress_bar
- Optional progress updater (may benull
)- Throws:
java.io.IOException
-
getLastAdded
- Specified by:
getLastAdded
in interfaceShapeSet
-
getLastRemoved
- Specified by:
getLastRemoved
in interfaceShapeSet
-
getLastModified
- Specified by:
getLastModified
in interfaceShapeSet
-
getLastInserted
- Specified by:
getLastInserted
in interfaceShapeSet
-
getLastMoved
- Specified by:
getLastMoved
in interfaceShapeSet
-
getLastInsert
public int getLastInsert()- Specified by:
getLastInsert
in interfaceShapeSet
-