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.VertexShapeTransformerNested classes/interfaces inherited from class mgui.interfaces.shapes.InterfaceShape
InterfaceShape.VertexDataSetNested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType -
Field Summary
Fields Modifier and Type Field Description booleanblnUpdateRect2DboundBox2Dorg.jogamp.java3d.ModelClipclip_planesValueMapscene3DNodesjava.util.HashMap<java.lang.Integer,ShapeSet2DInt>sectionsAttributeListshapeAttrdoublewidthFields 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_groupFields 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_dirFields 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 ShapeSet2DIntaddSection(int section, boolean updateShape)Add a section shape set to this section set.booleanaddShape(InterfaceShape shape)Adds a shape to this setvoidaddShape2D(Shape2DInt thisShape, int section, boolean update)voidaddShape2D(Shape2DInt shape, int section, boolean updateShape, boolean updateListeners)Adds a 2D shape to the section shape set at indexsection.voidaddUnionSet(SectionSet3DInt uSet, boolean init)voidaddUnionSet(ShapeSet2DInt thisSet, int section)voidaddUnionSet(ShapeSet2DInt thisSet, int section, boolean updateShape, boolean updateListeners)voidattributeUpdated(AttributeEvent e)Responds to an update in one of this shape's attributes.booleancrossesPlane(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 setbooleangetApplyClip()Rect2DgetBoundBox2D()floatgetClipDistDown()Gets the downwards clipping distance for this section setfloatgetClipDistUp()Gets the upwards clipping distance for this section setorg.jogamp.java3d.ModelClipgetClipPlanes(int section)Get a set of twoModelClipnodes parallel to this section's plane, at distances defined bygetClipDistUp()andgetClipDistDown().intgetClosestSection(org.jogamp.vecmath.Point3f point)Returns the index of the section in this set which is closest topoint.intgetFirstSection()ShapegetGeometryInstance()Returns an instance of thisInterfaceShape's geometry class.intgetIndexOf(InterfaceShape section_set)Returns the index ofsection_setin this set.SectionSet3DIntgetInitSectionSet()booleangetInvertClip()java.util.IteratorgetIterator()InterfaceShapegetLastAdded()intgetLastInsert()InterfaceShapegetLastInserted()InterfaceShapegetLastModified()InterfaceShapegetLastMoved()InterfaceShapegetLastRemoved()intgetLastSection()java.lang.StringgetLocalName()Returns the local name associated with this XML object.java.util.ArrayList<InterfaceShape>getMembers()Returns a copy of this set's member list.Plane3DgetPlaneAt(int section)Return the plane corresponding to the specified sectionPlane3DgetRefPlane()Gets the reference plane (i.e., at index 0) for this section set.org.jogamp.java3d.BranchGroupgetScene3DObject(ShapeSelectionSet selSet)doublegetSectionDist(int i)Gets the distance of the section plane at indexifrom the reference plance (i.e., at index 0).intgetSectionForShape(Shape2DInt shape)intgetSectionOf(ShapeSet2DInt set)Returns the index ofsetin this section set object, if it exists.Shape2DIntgetShape2D(Plane3D plane, float above_dist, float below_dist)To be overridden by subclasses implementing a 2D representationShape2DIntgetShape2DInt(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_distandbelow_dist.ShapeSet2DIntgetShape2DType(Shape2DInt shape)ShapeSet2DIntgetShape2DType(Shape2DInt shape, boolean recurse)intgetShapeCount()java.util.Set<InterfaceShape>getShapeSet()ShapeSet2DIntgetShapeSet(int section)ShapeSet2DIntgetShapeSet(int section, double sectionWidth)Return a ShapeSet2DInt of all objects intersected by the current section plane and its upper and lower bounds.ShapeSet3DIntgetShapeSet3DInt()ShapeSet3DIntgetShapeSet3DInt(ShapeSelectionSet selSet)booleangetShowSection3D()intgetSize()Returns the number of shapes in this setfloatgetSpacing()java.util.Set<ShapeSet>getSubSets()booleangetUpdateable()java.util.ArrayList<org.jogamp.vecmath.Point3f>getVertices()View3DgetView3D()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); } View3DgetView3D(double distance)java.lang.StringgetXML(int tab, XMLObject.XMLType type)booleanhasClipPlanes()booleanhasSection(int i)Checks whether a section exists at indexi.booleanhasSections()Checks whether any sections have yet been set for this section set.booleanhasShape(InterfaceShape s)Not implemented.booleanhasShape(InterfaceShape s, boolean recurse)Not implemented.protected voidinit()booleanisAncestorSet(ShapeSet set)Determines whethersetis an ancestor set of this set; i.e., whether this set is a subset ofset.InterfaceTreeNodeissueTreeNode()Issues a new tree node for this ShapeInt.booleanmoveShapeBefore(InterfaceShape shape, InterfaceShape target)Moves the order ofshapeto the spot beforetarget.booleanneedsRedraw(Attribute<?> a)Returnstrueif a change toattributewill require a redraw of this shape.booleanremoveSection(int section, boolean updateShape, boolean updateListeners)Remove the section at indexsection.voidremoveSelectionSet(ShapeSelectionSet selSet)voidremoveShape(InterfaceShape shape)Removes a shape from this setvoidremoveShape(Shape2DInt shape, boolean updateShape, boolean updateListeners)voidsetApplyClip(boolean apply)voidsetBoundBox2D(Rect2D thisBox)voidsetClipDistDown(float dist)Sets the downwards clipping distance for this section setvoidsetClipDistUp(float dist)Sets the upwards clipping distance for this section setvoidsetFromSectionSet(SectionSet3DInt thisSet)protected voidsetIcon()voidsetInvertClip(boolean apply)voidsetRefPlane(Plane3D thisPlane)Sets the reference plane (i.e., at index 0) for this section set.voidsetScene3DObject()Sets this ShapeInt's Java3D scene node from its current geometry and rendering attributes.voidsetScene3DObject(boolean make_live)Sets this ShapeInt's Java3D scene node from its current geometry and rendering attributes.voidsetScene3DObject(ShapeSelectionSet filter, boolean make_live)voidsetSpacing(float s)Sets the spacing distance for this section set.voidsetTreeNode(InterfaceTreeNode treeNode)Constructs a tree node from this shape.voidsetUnit(SpatialUnit unit)Does nothing forSectionSet3DInt; the unit is set by the parent set (or the the default fromInterfaceEnvironment, if no parent is set.voidsetUpdateable(boolean b)voidshapeUpdated(ShapeEvent e)A shape that this object is listening to has been updated.java.lang.StringtoString()voidupdateLightShapes()voidupdateShape()Updates the geometric bounds of this ShapeInt.voidupdateShape(ShapeSet2DInt thisSet, int section)booleanvalidateNodes()voidwriteXML(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, updateVerticesMethods 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, writeXMLMethods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, updateTreeNodesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mgui.interfaces.util.CleanableObject
cleanMethods inherited from interface mgui.interfaces.NamedObject
getName, setNameMethods inherited from interface mgui.interfaces.shapes.util.ShapeListener
destroy, isDestroyedMethods 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:InterfaceShapeReturns an instance of thisInterfaceShape's geometry class.- Overrides:
getGeometryInstancein classShape3DInt- Returns:
-
getIndexOf
Returns the index ofsection_setin this set.- Specified by:
getIndexOfin 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:
setUnitin interfaceShapeSet- Overrides:
setUnitin classInterfaceShape
-
isAncestorSet
Description copied from interface:ShapeSetDetermines whethersetis an ancestor set of this set; i.e., whether this set is a subset ofset.- Specified by:
isAncestorSetin interfaceShapeSet- Returns:
-
setIcon
protected void setIcon()- Overrides:
setIconin classShape3DInt
-
init
protected void init()- Overrides:
initin classShape3DInt
-
getMembers
Returns a copy of this set's member list.- Specified by:
getMembersin interfaceShapeSet- Returns:
- a list of members
-
getSectionForShape
-
getShowSection3D
public boolean getShowSection3D() -
getSectionOf
Returns the index ofsetin this section set object, if it exists. Otherwise, returnsInteger.MAX_VALUE.- Parameters:
set- The set to check- Returns:
- The index of
set, orInteger.MAX_VALUEif it is not in this section set.
-
attributeUpdated
Description copied from class:Shape3DIntResponds 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:
attributeUpdatedin interfaceAttributeListener- Overrides:
attributeUpdatedin classShape3DInt- Parameters:
e- anAttributeEventspecifying which attribute has been changed
-
needsRedraw
Description copied from class:InterfaceShapeReturnstrueif a change toattributewill require a redraw of this shape.- Overrides:
needsRedrawin classShape3DInt- Returns:
-
getSize
public int getSize()Description copied from interface:ShapeSetReturns 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:
getView3Din 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 twoModelClipnodes 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:Shape3DIntIssues a new tree node for this ShapeInt. Creates the node and then callsInterfaceShape.setTreeNode(mgui.interfaces.trees.InterfaceTreeNode)to construct it.setTreeNodeshould be overridden by subclasses.- Specified by:
issueTreeNodein interfaceTreeObject- Overrides:
issueTreeNodein classShape3DInt- Returns:
- a new
InterfaceTreeNode, which is an instance ofShape3DTreeNode.
-
setTreeNode
Description copied from class:InterfaceShapeConstructs a tree node from this shape. Adds anAttributeTreeNodevia thesupermethod, 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:
setTreeNodein interfaceTreeObject- Overrides:
setTreeNodein 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 indexifrom the reference plance (i.e., at index 0).- Parameters:
i-- Returns:
-
toString
public java.lang.String toString()- Overrides:
toStringin classShape3DInt
-
shapeUpdated
Description copied from interface:ShapeListenerA shape that this object is listening to has been updated. The specific type of event is defined by ShapeEvent.EventType.- Specified by:
shapeUpdatedin interfaceShapeListener
-
getShape2DType
-
getShape2DType
-
addUnionSet
-
addUnionSet
public void addUnionSet(ShapeSet2DInt thisSet, int section, boolean updateShape, boolean updateListeners) -
addUnionSet
-
updateShape
-
removeShape
Description copied from interface:ShapeSetRemoves a shape from this set- Specified by:
removeShapein interfaceShapeSet
-
removeShape
-
getShape2DInt
Description copied from class:Shape3DIntDetermines a 2D shape which is the projection of this 3D shape ontoplane, within the projection limits defined byabove_distandbelow_dist.- Overrides:
getShape2DIntin classShape3DIntabove_dist- The projection limit above the plane
-
getShape2D
Description copied from class:Shape3DIntTo be overridden by subclasses implementing a 2D representation- Overrides:
getShape2Din 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:Shape3DIntConvenience method which determines whether this shape crossplane.- Overrides:
crossesPlanein classShape3DInt- Returns:
-
removeSelectionSet
-
getScene3DObject
- Overrides:
getScene3DObjectin classShape3DInt
-
setScene3DObject
public void setScene3DObject()Description copied from class:Shape3DIntSets 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:
setScene3DObjectin classShape3DInt
-
setScene3DObject
public void setScene3DObject(boolean make_live)Description copied from class:Shape3DIntSets 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:
setScene3DObjectin classShape3DInt
-
setScene3DObject
-
getVertices
public java.util.ArrayList<org.jogamp.vecmath.Point3f> getVertices()- Overrides:
getVerticesin 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:Shape3DIntUpdates the geometric bounds of this ShapeInt. Does not callShape3DInt.setScene3DObject().- Overrides:
updateShapein 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:ShapeSetAdds a shape to this set -
moveShapeBefore
Description copied from interface:ShapeSetMoves the order ofshapeto the spot beforetarget.- Specified by:
moveShapeBeforein interfaceShapeSet- Returns:
-
getShapeSet
- Specified by:
getShapeSetin 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:
getSubSetsin interfaceShapeSet
-
hasShape
Not implemented. -
hasShape
Not implemented. -
getLocalName
public java.lang.String getLocalName()Description copied from interface:XMLObjectReturns the local name associated with this XML object.- Specified by:
getLocalNamein interfaceXMLObject- Overrides:
getLocalNamein classShape3DInt- Returns:
-
getXML
- Overrides:
getXMLin classInterfaceShape
-
writeXML
public void writeXML(int tab, java.io.Writer writer, XMLOutputOptions options, ProgressUpdater progress_bar) throws java.io.IOExceptionDescription copied from interface:XMLObjectWrites 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.Asciiwill be used.- Specified by:
writeXMLin interfaceXMLObject- Overrides:
writeXMLin 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:
getLastAddedin interfaceShapeSet
-
getLastRemoved
- Specified by:
getLastRemovedin interfaceShapeSet
-
getLastModified
- Specified by:
getLastModifiedin interfaceShapeSet
-
getLastInserted
- Specified by:
getLastInsertedin interfaceShapeSet
-
getLastMoved
- Specified by:
getLastMovedin interfaceShapeSet
-
getLastInsert
public int getLastInsert()- Specified by:
getLastInsertin interfaceShapeSet
-