de.grogra.imp3d.objects
public class FrustumIrregular extends FrustumBase implements Renderable
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
static Node.NType.Field |
baseOpen$FIELD |
protected float[] |
baseRadii |
static Node.NType.Field |
baseRadii$FIELD |
protected int |
sectorCount |
static Node.NType.Field |
sectorCount$Field |
static Node.NType.Field |
topOpen$FIELD |
protected float[] |
topRadii |
static Node.NType.Field |
topRadii$FIELD |
BASE_OPEN_MASK, TOP_OPEN_MASK, USED_BITSendPosition, endPosition$FIELD, length, length$FIELD, startPosition, startPosition$FIELDSCALE_V_MASK, scaleV$FIELDINFINITE_MASK, interior, interior$FIELD, shader, shader$FIELD, treatedAsInfinite$FIELDtransform, 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 |
|---|
FrustumIrregular() |
FrustumIrregular(float len,
int sectorCount,
float[] baseRadii,
float[] topRadii) |
FrustumIrregular(int sectorCount,
float[] baseRadii,
float[] topRadii) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.lang.Object object,
boolean asNode,
RenderState rs) |
float[] |
getBaseRadii() |
protected Node.NType |
getNTypeImpl()
This method returns the
Node.NType which describes the managed
fields of the class of this node. |
int |
getSectorCount() |
double |
getSurfaceArea()
Calculates the estimated surface area of this irregular frustum.
|
float[] |
getTopRadii() |
double |
getVolume()
Calculates the estimated volume of this irregular frustum.
|
boolean |
isBaseOpen() |
boolean |
isTopOpen() |
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.
|
float |
radiusMax() |
void |
resetRadii(int sectorCount,
float radiusValue) |
void |
setBaseOpen(boolean v) |
void |
setBaseRadii(float[] value) |
void |
setBaseRadii(int index,
float value) |
void |
setSectorCount(int value) |
void |
setTopOpen(boolean v) |
void |
setTopRadii(float[] value) |
void |
setTopRadii(int index,
float value) |
pickgetEndPosition, getLength, getPivotShift, getStartPosition, postTransform, preTransform, setEndPoints, setEndPoints, setEndPoints, setEndPosition, setLength, setStartPositiongetInterior, getShader, getSymbolColor, isTreatedAsInfinite, setBackShader, setColor, setColor, setFrontShader, setInterior, setMaterial, setShader, setShaders, setTreatedAsInfinitegetLocalTransformation, getTransform, getTranslation, isTransforming, 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
public static final Node.NType.Field baseOpen$FIELD
protected float[] baseRadii
public static final Node.NType.Field baseRadii$FIELD
protected int sectorCount
public static final Node.NType.Field sectorCount$Field
public static final Node.NType.Field topOpen$FIELD
protected float[] topRadii
public static final Node.NType.Field topRadii$FIELD
public FrustumIrregular()
public FrustumIrregular(float len,
int sectorCount,
float[] baseRadii,
float[] topRadii)
public FrustumIrregular(int sectorCount,
float[] baseRadii,
float[] topRadii)
public void draw(java.lang.Object object,
boolean asNode,
RenderState rs)
draw in interface Renderablepublic float[] getBaseRadii()
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 int getSectorCount()
public double getSurfaceArea()
getSurfaceArea in class ShadedNullpublic float[] getTopRadii()
public double getVolume()
getVolume in class ShadedNullpublic boolean isBaseOpen()
public boolean isTopOpen()
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 float radiusMax()
public void resetRadii(int sectorCount,
float radiusValue)
public void setBaseOpen(boolean v)
public void setBaseRadii(float[] value)
public void setBaseRadii(int index,
float value)
public void setSectorCount(int value)
public void setTopOpen(boolean v)
public void setTopRadii(float[] value)
public void setTopRadii(int index,
float value)