de.grogra.imp3d.objects
public class Lamella extends Axis implements Pickable, Renderable, Raytraceable
| Modifier and Type | Class and Description |
|---|---|
static class |
Lamella.LPattern |
static class |
Lamella.Pattern |
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
protected float |
a |
static Node.NType.Field |
a$FIELD |
protected float |
b |
static Node.NType.Field |
b$FIELD |
protected float |
height |
static Node.NType.Field |
height$FIELD |
static int |
SHIFT_PIVOT_MASK |
static Node.NType.Field |
shiftPivot$FIELD |
static int |
USED_BITS |
protected float |
width |
static Node.NType.Field |
width$FIELD |
endPosition, 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 |
|---|
Lamella() |
Lamella(float length,
float a,
float b) |
Lamella(float length,
float a,
float b,
boolean shiftPivot) |
Lamella(float length,
float width,
float height,
float a,
float b) |
| Modifier and Type | Method and Description |
|---|---|
RaytracerLeaf |
createRaytracerLeaf(java.lang.Object object,
boolean asNode,
long pathId,
GraphState gs) |
void |
draw(java.lang.Object object,
boolean asNode,
RenderState rs) |
float |
getA() |
float |
getB() |
float |
getHeight() |
protected Node.NType |
getNTypeImpl()
This method returns the
Node.NType which describes the managed
fields of the class of this node. |
protected float |
getPivotShift(java.lang.Object object,
boolean asNode,
GraphState gs) |
double |
getSurfaceArea()
Approximation of the surface area of an object (approximated by a box).
|
double |
getVolume()
Approximation of the volume (approximated by a box).
|
float |
getWidth() |
boolean |
isShiftPivot() |
protected Node |
newInstance()
This method returns a new instance of the class of this
node.
|
static void |
pick(float w2,
float l2,
float h,
Point3d origin,
Vector3d direction,
PickList list) |
void |
pick(java.lang.Object object,
boolean asNode,
Point3d origin,
Vector3d direction,
Matrix4d t,
PickList list)
Computes intersections of a given ray with this shape.
|
void |
setA(float value) |
void |
setB(float value) |
void |
setFunctionParameters(float a,
float b) |
void |
setHeight(float value) |
void |
setShiftPivot(boolean v) |
void |
setWidth(float value) |
getEndPosition, getLength, 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
protected float a
public static final Node.NType.Field a$FIELD
protected float b
public static final Node.NType.Field b$FIELD
protected float height
public static final Node.NType.Field height$FIELD
public static final int SHIFT_PIVOT_MASK
public static final Node.NType.Field shiftPivot$FIELD
public static final int USED_BITS
protected float width
public static final Node.NType.Field width$FIELD
public Lamella()
public Lamella(float length,
float a,
float b)
public Lamella(float length,
float a,
float b,
boolean shiftPivot)
public Lamella(float length,
float width,
float height,
float a,
float b)
public RaytracerLeaf createRaytracerLeaf(java.lang.Object object, boolean asNode, long pathId, GraphState gs)
createRaytracerLeaf in interface Raytraceablepublic void draw(java.lang.Object object,
boolean asNode,
RenderState rs)
draw in interface Renderablepublic float getA()
public float getB()
public float getHeight()
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 ShadedNullprotected float getPivotShift(java.lang.Object object,
boolean asNode,
GraphState gs)
getPivotShift in class Axispublic double getSurfaceArea()
getSurfaceArea in class ShadedNullpublic double getVolume()
getVolume in class ShadedNullpublic float getWidth()
public boolean isShiftPivot()
protected Node newInstance()
NodenewInstance in class ShadedNullpublic static void pick(float w2,
float l2,
float h,
Point3d origin,
Vector3d direction,
PickList list)
public void pick(java.lang.Object object,
boolean asNode,
Point3d origin,
Vector3d direction,
Matrix4d t,
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 coordinatest - the transformation from local coordinates to world coordinateslist - the list to which intersections have to be addedpublic void setA(float value)
public void setB(float value)
public void setFunctionParameters(float a,
float b)
public void setHeight(float value)
public void setShiftPivot(boolean v)
public void setWidth(float value)