de.grogra.imp3d.objects
public class NURBSSurface extends ShadedNull implements Renderable, Polygonizable, Pickable
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
protected float |
flatness |
static Node.NType.Field |
flatness$FIELD |
static byte |
SKIN
Constant for
NURBSSurface(byte) indicating a
skinned surface (defined by a set of profile curves in space). |
protected BSplineSurface |
surface |
static Node.NType.Field |
surface$FIELD |
static byte |
SWEEP
Constant for
NURBSSurface(byte) indicating a
swept surface (defined by a set of vertices in space). |
protected int |
visibleSides |
static Node.NType.Field |
visibleSides$FIELD |
INFINITE_MASK, interior, interior$FIELD, shader, shader$FIELD, treatedAsInfinite$FIELD, USED_BITStransform, transform$FIELD, TRANSFORMING_MASK, transforming$FIELDADDITIONAL_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$FIELDDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
NURBSSurface() |
NURBSSurface(BSplineCurve profile) |
NURBSSurface(BSplineCurve profile,
boolean useRail) |
NURBSSurface(BSplineCurveList curves) |
NURBSSurface(BSplineCurve profile,
java.lang.String name) |
NURBSSurface(BSplineCurve profile,
java.lang.String name,
boolean useRail) |
NURBSSurface(BSplineSurface surface) |
NURBSSurface(byte type) |
NURBSSurface(byte type,
java.lang.String name,
boolean useRail) |
NURBSSurface(float radius) |
NURBSSurface(float radius,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.lang.Object object,
boolean asNode,
RenderState rs) |
float |
getFlatness() |
protected Node.NType |
getNTypeImpl()
This method returns the
Node.NType which describes the managed
fields of the class of this node. |
ContextDependent |
getPolygonizableSource(GraphState gs)
Defines the data source on which the polygonization
depends.
|
Polygonization |
getPolygonization()
Defines the algorithm which is used to decompose the data
into a polygon mesh representation.
|
BSplineSurface |
getSurface() |
int |
getVisibleSides() |
protected Node |
newInstance()
This method returns a new instance of the class of this
node.
|
void |
pick(java.lang.Object object,
boolean asNode,
Point3d origin,
Vector3d direction,
Matrix4d transformation,
PickList list)
Computes intersections of a given ray with this shape.
|
void |
setFlatness(float value) |
void |
setHermite(boolean hermite) |
void |
setSurface(BSplineSurface value) |
void |
setTangentLength(float length) |
void |
setUseRail(boolean useRail) |
void |
setVisibleSides(int value) |
getInterior, getShader, getSurfaceArea, getSymbolColor, getVolume, isTreatedAsInfinite, setBackShader, setColor, setColor, setFrontShader, setInterior, setMaterial, setShader, setShaders, setTreatedAsInfinitegetLocalTransformation, getTransform, getTranslation, isTransforming, postTransform, preTransform, setRotation, setScale, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransforming, setTranslationaddEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, 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, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, 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, setLayer, setMark, setName, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceaddEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBitMark, getObjectMark, setBitMark, setObjectMarkpublic static final Node.NType $TYPE
protected float flatness
public static final Node.NType.Field flatness$FIELD
public static final byte SKIN
NURBSSurface(byte) indicating a
skinned surface (defined by a set of profile curves in space).protected BSplineSurface surface
public static final Node.NType.Field surface$FIELD
public static final byte SWEEP
NURBSSurface(byte) indicating a
swept surface (defined by a set of vertices in space).protected int visibleSides
public static final Node.NType.Field visibleSides$FIELD
public NURBSSurface()
public NURBSSurface(BSplineCurve profile)
public NURBSSurface(BSplineCurve profile, boolean useRail)
public NURBSSurface(BSplineCurveList curves)
public NURBSSurface(BSplineCurve profile, java.lang.String name)
public NURBSSurface(BSplineCurve profile, java.lang.String name, boolean useRail)
public NURBSSurface(BSplineSurface surface)
public NURBSSurface(byte type)
public NURBSSurface(byte type,
java.lang.String name,
boolean useRail)
public NURBSSurface(float radius)
public NURBSSurface(float radius,
java.lang.String name)
public void draw(java.lang.Object object,
boolean asNode,
RenderState rs)
draw in interface Renderablepublic float getFlatness()
protected Node.NType getNTypeImpl()
NodeNode.NType which describes the managed
fields of the class of this node. This method has to be implemented
in every concrete subclass.getNTypeImpl in class ShadedNullpublic ContextDependent getPolygonizableSource(GraphState gs)
PolygonizablegetPolygonizableSource in interface Polygonizablegs - the current graph statepublic Polygonization getPolygonization()
PolygonizablegetPolygonization in interface Polygonizablepublic BSplineSurface getSurface()
public int getVisibleSides()
protected Node newInstance()
NodenewInstance in class ShadedNullpublic void pick(java.lang.Object object,
boolean asNode,
Point3d origin,
Vector3d direction,
Matrix4d transformation,
PickList list)
Pickablepick in interface Pickableobject - the object of which this shape is an attributeasNode - true iff object is a nodeorigin - the origin of the ray, in local coordinatesdirection - the direction of the ray, in local coordinatestransformation - the transformation from local coordinates to world coordinateslist - the list to which intersections have to be addedpublic void setFlatness(float value)
public void setHermite(boolean hermite)
public void setSurface(BSplineSurface value)
public void setTangentLength(float length)
public void setUseRail(boolean useRail)
public void setVisibleSides(int value)