public final class PvGeometry extends PgJvxSrc implements PvGeometryIf
A subclass of PgGeometry has access to all methods of PvGeometry listed in PvGeometryIf.
PvGeometryIf
,
PgGeometry
,
PvDisplay
,
PvScene
,
Serialized FormModifier and Type | Field and Description |
---|---|
boolean |
m_bPerspectivity
HACK JOGL Flag if perspectivity is enabled.
|
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS
DRAW_FRAME, DRAW_ORDER_BACK, DRAW_ORDER_FRONT, DRAW_ORDER_STANDARD, ENABLE_DEFAULT_LABEL, ENABLE_NEIGHBOUR, GEOM_BOUNDARY_POLYGON, GEOM_ELEMENT_SET, GEOM_ITEM_EDGE, GEOM_ITEM_ELEMENT, GEOM_ITEM_NAME, GEOM_ITEM_POINT, GEOM_ITEM_POLYGON, GEOM_ITEM_TETRA, GEOM_ITEM_TITLE, GEOM_POINT_SET, GEOM_POLYGON, GEOM_POLYGON_SET, GEOM_TETRA_SET, GEOM_UNKNOWN, GEOM_VECTOR_FIELD, IGNORE_DEPTHCUE, IGNORE_LIGHTING, INDUCE_ELEMENT_FROM_VERTEX_COLORS, IS_BOUNDARY, IS_CREASE, IS_HIDDEN, IS_PICKED, IS_SYMMETRY, SHOW_BACKFACE, SHOW_BNDBOX, SHOW_BOUNDARIES, SHOW_CENTER, SHOW_EDGE_COLOR_FROM_ELEMENTS, SHOW_EDGE_COLOR_FROM_VERTICES, SHOW_EDGE_COLORS, SHOW_EDGE_LABELS, SHOW_EDGE_SIZES, SHOW_EDGES, SHOW_ELEMENT_BACK_COLOR, SHOW_ELEMENT_BACK_COLORS, SHOW_ELEMENT_COLOR_FROM_VERTICES, SHOW_ELEMENT_COLORS, SHOW_ELEMENT_LABELS, SHOW_ELEMENT_NORMAL_ARROW, SHOW_ELEMENT_NORMALS, SHOW_ELEMENT_TEXTURE, SHOW_ELEMENTS, SHOW_INDICES, SHOW_NAME, SHOW_OUTLINE, SHOW_POLYGON_COLORS, SHOW_POLYGON_END_ARROW, SHOW_POLYGON_LABELS, SHOW_POLYGON_NORMAL_ARROW, SHOW_POLYGON_NORMALS, SHOW_POLYGON_SIZES, SHOW_POLYGON_START_ARROW, SHOW_POLYGONS, SHOW_SILHOUETTE, SHOW_SMOOTH_EDGE_COLORS, SHOW_SMOOTH_ELEMENT_COLORS, SHOW_SMOOTH_LIGHTING, SHOW_SMOOTH_SHADING, SHOW_TAGGED_BOUNDARIES, SHOW_TAGGED_EDGES, SHOW_TAGGED_ELEMENTS, SHOW_TAGGED_POLYGONS, SHOW_TAGGED_VERTICES, SHOW_TEXTURE_BACK, SHOW_TEXTURE_FRONT, SHOW_TITLE, SHOW_TRANSPARENCY, SHOW_VECTOR_ARROWS, SHOW_VECTOR_COLORS, SHOW_VECTORS, SHOW_VERTEX_COLORS, SHOW_VERTEX_LABELS, SHOW_VERTEX_NORMAL_ARROW, SHOW_VERTEX_NORMALS, SHOW_VERTEX_OUTLINE, SHOW_VERTEX_SIZES, SHOW_VERTEX_TEXTURE, SHOW_VERTICES, USER_BIT
AMBIENT_H2_HYPERBOLIC, AMBIENT_H3_HYPERBOLIC, AMBIENT_H4_HYPERBOLIC, AMBIENT_PROJECTIONS, AMBIENT_R1_EUCLIDEAN, AMBIENT_R2_EUCLIDEAN, AMBIENT_R3_EUCLIDEAN, AMBIENT_R4_EUCLIDEAN, AMBIENT_R5_EUCLIDEAN, AMBIENT_S1_SPHERE, AMBIENT_S2_SPHERE, AMBIENT_S3_SPHERE, AMBIENT_S4_SPHERE, AMBIENT_SPACES, BLEND_ALPHA, BLEND_MATERIAL, BLEND_REPLACE, FILTER_DIRECT, FILTER_LINEAR, FILTER_QUADRATIC, HAS_METHOD_MENU, INSPECTOR_CONTROL, INSPECTOR_CONTROL_EXT, INSPECTOR_MATERIAL, INSPECTOR_MATERIAL_EXT, INSPECTOR_TEXTURE, INSPECTOR_TEXTURE_EXT, LABEL_BASE, LABEL_CENTER, LABEL_HEAD, LABEL_MIDDLE, LABEL_TAIL, LABEL_TOP, m_numLabelTypes, METHOD_EXT, PERIODIC_BOTH, PERIODIC_HEIGHT, PERIODIC_NONE, PERIODIC_WIDTH, PROJ_KLEIN_BALL, PROJ_PARALLEL, PROJ_POINCARE_BALL, PROJ_STEREOGRAPHIC, PROJ_UPPER_HALFSPACE, SIDE_BACK, SIDE_BOTH, SIDE_FRONT, SIDE_NONE
Constructor and Description |
---|
PvGeometry(int dim)
Constructor with dimension of vertices.
|
Modifier and Type | Method and Description |
---|---|
int |
addPolygon(PiVector aPolygon)
Increment the number of polygons and add given polygon.
|
void |
assureElementNormals()
Assures respectively allocates correct length of transformed element normal array.
|
void |
assureVertexNormals()
Assures respectively allocates correct length of transformed element normal array.
|
void |
clearTagElement(int anIndex,
int aTag)
Method does nothing and may be overridden by subclasses.
|
void |
clearTagPolygon(int anIndex,
int aTag)
Method does nothing and may be overridden by subclasses.
|
void |
clearTagVertex(int anIndex,
int aTag)
Clear a single tag of a vertex.
|
void |
drawSpline(java.awt.Graphics g,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2,
int x3,
int y3,
int z3)
Draw a three-point spline.
|
PdVector[] |
getBounds(boolean bScene)
Compute bounding box if geometry has number of vertices, otherwise return null.
|
int |
getDrawingOrder()
Get position of geometry in z-direction in display.
|
PgGeometryIf |
getGeometry()
Get geometry managed by this geometry container.
|
boolean |
getState(int aKey)
Method only partially implemented.
|
boolean |
hasTagElement(int anIndex,
int aTag)
Method does nothing and may be overridden by subclasses.
|
boolean |
hasTagPolygon(int anIndex,
int aTag)
Method does nothing and may be overridden by subclasses.
|
boolean |
hasTagVertex(int anIndex,
int aTag)
Check whether vertex has given tag.
|
void |
init()
Initializes and resets geometry.
|
boolean |
isSpecial()
Check if this geometry is a special geometry, for example, bounding box or light.
|
void |
projectItems(PdMatrix projviewMat,
PdMatrix projMat,
PdMatrix viewMat,
PdMatrix modelMat)
HACK Made public for JOGL test.
|
void |
setAmbientMatrix(PdMatrix ambientMat,
PdMatrix ambientInvMat)
Set ambient model matrix of geometry to copy of argument matrix.
|
void |
setDimOfVertices(int dim)
Assign dimension of vertices.
|
void |
setDrawingOrder(int pos)
Set position of geometry in z-direction in display.
|
void |
setElementNormals(PdVector[] normalList)
Method uses superclass to assign and remove element normals,
but during removal also removes also the transformed element normels.
|
void |
setGeometry(PgGeometryIf aGeometry)
Set geometry to be displayed.
|
void |
setGlobalBndSize(double aSize)
Assign global boundary thickness.
|
void |
setGlobalEdgeSize(double aSize)
Assign global edge thickness.
|
void |
setGlobalElementNormalSize(double aSize)
Set global thickness of element normal vectors.
|
void |
setGlobalPolygonNormalSize(double aSize)
Set global thickness of polygon normal vectors.
|
void |
setGlobalPolygonSize(double aSize)
Assign global polygon thickness.
|
void |
setGlobalVertexNormalSize(double aSize)
Set global thickness of vertex normal vectors.
|
boolean |
setLabelAttributes(PiVector[] attr)
Set offset vector in pixel coordinates of label w.r.t. base point.
|
void |
setLabelColors(java.awt.Color[] col)
Set color of all different label type.
|
void |
setLabelFonts(java.lang.String[] name)
Set font sizes of all label types.
|
void |
setLabelSizes(PdVector size)
Set font sizes of all label types.
|
void |
setLabelStyles(PiVector style)
Set font styles of all label types.
|
void |
setModelMatrix(PdMatrix modelMat)
Set model matrix of geometry to copy of argument matrix.
|
void |
setNumVectorFields(int num)
Set number of allocated and used vector fields.
|
void |
setNumVectors(int ind,
int num,
int dimOfVectors)
Set number of vectors of a vector field with given index.
|
void |
setPolygons(PiVector[] polygon)
Copy the first m_numPolygons of given array into polygon array.
|
void |
setSpecial(boolean flag)
Set status that this geometry is a special geometry, for example, bounding box or light.
|
void |
setSpecularColor(java.awt.Color col)
Set specular color of geometry.
|
void |
setState(int aKey,
boolean state)
Set drawing flags of the geometry.
|
void |
setStateFromDisplay(int aKey,
boolean state)
Set drawing flags of the geometry from display.
|
void |
setTagElement(int anIndex,
int aTag)
Method does nothing and may be overridden by subclasses.
|
void |
setTagPolygon(int anIndex,
int aTag)
Method does nothing and may be overridden by subclasses.
|
void |
setTagVertex(int anIndex,
int aTag)
Set a tag of a vertex.
|
void |
setTexture(int[] texturePix,
int width,
int height,
int blendingMode,
int filteringType)
Set texture image as array of pixels and image dimensions with no multiple repetition.
|
void |
setTexture(int[] texturePix,
int width,
int height,
int tilingWidth,
int tilingHeight,
int periodic,
int blendingMode,
int filteringType,
int textureSide)
Set texture image as array of pixels and image dimensions with multiple repetition.
|
void |
setTransparency(double trans)
Transparency is in [0, 1.] where 0. corresponds to opaque and 1. to fully transparent.
|
void |
setVertexNormals(PdVector[] normalList)
Method uses superclass to assign and remove vertex normals,
but during removal also removes also the transformed vertex normels.
|
void |
setVisible(boolean flag)
Show or hide geometry in display.
|
boolean |
update(java.lang.Object event)
Update this container geometry whenever the contained geometry has changed.
|
addElement, addVertex, assureEdgeColors, assureEdgeSizes, assureElementBackColors, assureElementColors, assureElementEdges, assureElementTextures, assureNeighbours, assurePolygonColors, assurePolygonNormals, assurePolygonSizes, assureVectorColors, assureVertexColors, assureVertexSizes, assureVertexTextures, clone, copy, getAmbientBounds, getBlendingMode, getBndColor, getBndElementInd, getBndName, getBndNeighbourLocInd, getBndNumVertices, getBndSize, getBndVertexInd, getBndVertices, getBounds, getCreaseAngle, getDimOfElements, getDimOfPolygons, getDimOfTextures, getDimOfVectors, getEdgeColors, getEdges, getEdgeSizes, getElement, getElementBackColors, getElementColors, getElementEdges, getElementNormals, getElements, getElementTextures, getFilterType, getGlobalBndColor, getGlobalBndSize, getGlobalBndTagColor, getGlobalEdgeColor, getGlobalEdgeNormalColor, getGlobalEdgeNormalLength, getGlobalEdgeNormalSize, getGlobalEdgeSize, getGlobalEdgeTagColor, getGlobalElementBackColor, getGlobalElementColor, getGlobalElementNormalColor, getGlobalElementNormalLength, getGlobalElementNormalSize, getGlobalElementTagColor, getGlobalPolygonColor, getGlobalPolygonNormalColor, getGlobalPolygonNormalLength, getGlobalPolygonNormalSize, getGlobalPolygonSize, getGlobalPolygonTagColor, getGlobalVectorColor, getGlobalVectorLength, getGlobalVectorSize, getGlobalVertexColor, getGlobalVertexNormalColor, getGlobalVertexNormalLength, getGlobalVertexNormalSize, getGlobalVertexSize, getGlobalVertexTagColor, getJvx, getNeighbours, getNumBndPolygons, getNumEdges, getNumElements, getNumPolygons, getNumVectorFields, getNumVectors, getNumVertices, getPolygon, getPolygonColors, getPolygonNormals, getPolygons, getPolygonSizes, getShininess, getSpecularColor, getTextureImage, getTextureImageBnd, getTextureImageName, getTexturePeriodic, getTextureSide, getTextureTiling, getTransparency, getVectorFieldColors, getVectorFieldName, getVectors, getVertex, getVertexColors, getVertexFunctions, getVertexNormals, getVertexSizes, getVertexTextures, getVertices, hasEdgeColors, hasElementBackColors, hasElementColors, hasElementNormals, hasElementTextures, hasPolygonColors, hasPolygonNormals, hasVertexColors, hasVertexNormals, hasVertexSizes, hasVertexTextures, isDefaultLabelEnabled, isEnabledIndexLabels, isShowingBackface, isShowingBnd, isShowingBndMaterials, isShowingBoundaries, isShowingEdgeColorFromElements, isShowingEdgeColorFromVertices, isShowingEdgeColors, isShowingEdgeLabels, isShowingEdges, isShowingEdgeSizes, isShowingElementBackColor, isShowingElementBackColors, isShowingElementColorFromVertices, isShowingElementColors, isShowingElementFromVertexColors, isShowingElementLabels, isShowingElementNormalArrow, isShowingElementNormals, isShowingElements, isShowingElementTexture, isShowingIndices, isShowingIndividualMaterial, isShowingPolygonColors, isShowingPolygonEndArrow, isShowingPolygonLabels, isShowingPolygonNormalArrow, isShowingPolygonNormals, isShowingPolygons, isShowingPolygonSizes, isShowingPolygonStartArrow, isShowingSilhouette, isShowingSmoothEdgeColors, isShowingSmoothElementColors, isShowingSmoothLighting, isShowingTaggedElements, isShowingTaggedPolygons, isShowingTaggedVertices, isShowingTransparency, isShowingVectorArrows, isShowingVectorColors, isShowingVectorField, isShowingVectorFieldMaterials, isShowingVectorFields, isShowingVertexColors, isShowingVertexLabels, isShowingVertexNormalArrow, isShowingVertexNormals, isShowingVertexOutline, isShowingVertexSizes, isShowingVertexTexture, isShowingVertices, isVectorElementBased, makeElementColorsFromXYZ, makeElementFromVertexColors, makeElementNormals, makeQuadrConn, makeVertexNormals, paint, reflect, removePolygonSizes, setBlendingMode, setBndColor, setBndElementInd, setBndName, setBndNeighbourLocInd, setBndNumVertices, setBndSize, setBndVertexInd, setBndVertices, setCreaseAngle, setDefaultLabelEnabled, setDimOfElements, setDimOfPolygons, setDimOfTextures, setEdgeColors, setEdges, setEdgeSizes, setElement, setElementBackColors, setElementColors, setElementEdges, setElements, setElementTextures, setEnabledIndexLabels, setFilterType, setGlobalBndColor, setGlobalBndTagColor, setGlobalEdgeColor, setGlobalEdgeNormalColor, setGlobalEdgeNormalLength, setGlobalEdgeNormalSize, setGlobalEdgeTagColor, setGlobalElementBackColor, setGlobalElementColor, setGlobalElementNormalColor, setGlobalElementNormalLength, setGlobalElementTagColor, setGlobalPolygonColor, setGlobalPolygonNormalColor, setGlobalPolygonNormalLength, setGlobalPolygonTagColor, setGlobalVectorColor, setGlobalVectorLength, setGlobalVectorSize, setGlobalVertexColor, setGlobalVertexNormalColor, setGlobalVertexNormalLength, setGlobalVertexSize, setGlobalVertexTagColor, setJvx, setNeighbours, setNumBndPolygons, setNumEdges, setNumElements, setNumPolygons, setNumVertices, setPolygon, setPolygonColors, setPolygonNormals, setPolygonSizes, setShininess, setTextureImage, setTextureImageBnd, setTextureImageName, setTexturePeriodic, setTextureSide, setTextureTiling, setVectorColors, setVectorElementBased, setVectorFieldName, setVectors, setVertex, setVertexColors, setVertexFunctions, setVertexSizes, setVertexTextures, setVertices, showBackface, showBnd, showBndMaterials, showBoundaries, showEdgeColorFromElements, showEdgeColorFromVertices, showEdgeColors, showEdgeLabels, showEdges, showEdgeSizes, showElementBackColor, showElementBackColors, showElementColorFromVertices, showElementColors, showElementFromVertexColors, showElementLabels, showElementNormalArrow, showElementNormals, showElements, showElementTexture, showIndices, showIndividualMaterial, showPolygonColors, showPolygonEndArrow, showPolygonLabels, showPolygonNormalArrow, showPolygonNormals, showPolygons, showPolygonSizes, showPolygonStartArrow, showSilhouette, showSmoothEdgeColors, showSmoothElementColors, showSmoothLighting, showTaggedElements, showTaggedPolygons, showTaggedVertices, showTransparency, showVectorArrows, showVectorColors, showVectorField, showVectorFieldMaterials, showVectorFields, showVertexColors, showVertexLabels, showVertexNormalArrow, showVertexNormals, showVertexOutline, showVertexSizes, showVertexTexture, showVertices
addDisplay, applyAmbientMatrix, applyModelingMatrix, blend, convertWorldToModel, copy, fillMethodMenu, fillMethodMenu, getAmbientInvMatrix, getAmbientMatrix, getAmbientProjection, getAmbientSpace, getAuthorInfo, getAuthors, getCenter, getCenterOfElement, getControlPanel, getDiameter, getDimOfSimplex, getDimOfVertices, getDisplayList, getDisplays, getGeometryInfo, getLabelAttribute, getLabelColor, getLabelFont, getLabelSize, getLabelStyle, getMaterialPanel, getModelMatrix, getTitle, getType, getVersion, getVersionType, hasAmbientMatrix, hasDisplay, hasModelMatrix, intersectionWithLine, isConfigurable, isEnabledInstanceSharing, isShowingBndBox, isShowingCenter, isShowingName, isShowingTitle, isVisible, merge, projectFromAmbientSpace, removeDisplay, removeElement, removeMethodMenus, removePolygon, removeVertex, setAmbientProjection, setAmbientSpace, setAuthorInfo, setAuthors, setCenter, setDimOfSimplex, setEnabledInstanceSharing, setGeometryInfo, setLabelAttribute, setLabelAttribute, setLabelColor, setLabelFont, setLabelSize, setLabelStyle, setTitle, setType, setVersion, setVersionType, showBndBox, showCenter, showName, showTitle, toString
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, updatePanels
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAmbientProjection, getAmbientSpace, isVisible, setAmbientProjection, setAmbientSpace, setBndColor, setBndElementInd, setBndName, setBndNeighbourLocInd, setBndSize, setCenter, setCreaseAngle, setDimOfElements, setDimOfPolygons, setEdgeColors, setEdges, setEdgeSizes, setElementBackColors, setElementColors, setElementEdges, setElements, setElementTextures, setGlobalBndColor, setGlobalBndTagColor, setGlobalEdgeColor, setGlobalEdgeTagColor, setGlobalElementBackColor, setGlobalElementColor, setGlobalElementNormalColor, setGlobalElementNormalLength, setGlobalElementTagColor, setGlobalPolygonColor, setGlobalPolygonNormalColor, setGlobalPolygonNormalLength, setGlobalPolygonTagColor, setGlobalVectorColor, setGlobalVectorLength, setGlobalVectorSize, setGlobalVertexColor, setGlobalVertexNormalColor, setGlobalVertexNormalLength, setGlobalVertexSize, setGlobalVertexTagColor, setNeighbours, setNumBndPolygons, setNumEdges, setNumElements, setNumPolygons, setNumVertices, setPolygonColors, setPolygonNormals, setPolygonSizes, setShininess, setVectorColors, setVectorElementBased, setVectors, setVertexColors, setVertexSizes, setVertexTextures, setVertices, showBnd, showBndMaterials, showVectorArrows, showVectorColors, showVectorField, showVectorFields
assureInspector, getInfoPanel, getName, hasTag, setName
getFather, setParent
public boolean m_bPerspectivity
public void init()
PgJvxSrc
init
in interface PvGeometryIf
init
in class PgJvxSrc
public void setDimOfVertices(int dim)
PgJvxSrc
setDimOfVertices
in interface PvGeometryIf
setDimOfVertices
in class PgJvxSrc
public boolean setLabelAttributes(PiVector[] attr)
setLabelAttributes
in interface PvGeometryIf
attr
- vector with label attributes of all label types.public void setLabelColors(java.awt.Color[] col)
setLabelColors
in interface PvGeometryIf
col
- color of all label types.public void setLabelSizes(PdVector size)
setLabelSizes
in interface PvGeometryIf
size
- Vector with font sizespublic void setLabelStyles(PiVector style)
setLabelStyles
in interface PvGeometryIf
style
- Vector with font sizespublic void setLabelFonts(java.lang.String[] name)
setLabelFonts
in interface PvGeometryIf
name
- Array with font namespublic void setVisible(boolean flag)
setVisible
in interface PgGeometryIf
setVisible
in interface PvGeometryIf
setVisible
in class PgGeometry
PgGeometry.isVisible()
public int getDrawingOrder()
getDrawingOrder
in interface PvGeometryIf
public void setDrawingOrder(int pos)
setDrawingOrder
in interface PvGeometryIf
public boolean isSpecial()
public void setSpecial(boolean flag)
flag
- true if this geometry is specialpublic void setGeometry(PgGeometryIf aGeometry)
setGeometry
in interface PvGeometryIf
public PgGeometryIf getGeometry()
getGeometry
in interface PvGeometryIf
public boolean getState(int aKey)
getState
in class PgGeometry
aKey
- flag to be set, choose among PvGeometryIf.SHOW_...public void setState(int aKey, boolean state)
setState
in interface PgGeometryIf
setState
in interface PvGeometryIf
setState
in class PgJvxSrc
aKey
- flag to be set, choose among PvGeometryIf.SHOW_...state
- enable or disable statepublic void setStateFromDisplay(int aKey, boolean state)
public PdVector[] getBounds(boolean bScene)
public void clearTagVertex(int anIndex, int aTag)
PgJvxSrc
PvGeometryIf
.clearTagVertex
in interface PgGeometryIf
clearTagVertex
in class PgJvxSrc
public boolean hasTagVertex(int anIndex, int aTag)
PgJvxSrc
PvGeometryIf
.hasTagVertex
in interface PgGeometryIf
hasTagVertex
in class PgJvxSrc
public void setTagVertex(int anIndex, int aTag)
PgJvxSrc
PvGeometryIf
.setTagVertex
in interface PgGeometryIf
setTagVertex
in class PgJvxSrc
public void clearTagPolygon(int anIndex, int aTag)
PgGeometry
clearTagPolygon
in interface PgGeometryIf
clearTagPolygon
in class PgGeometry
public boolean hasTagPolygon(int anIndex, int aTag)
PgGeometry
hasTagPolygon
in interface PgGeometryIf
hasTagPolygon
in class PgGeometry
public void setTagPolygon(int anIndex, int aTag)
PgGeometry
setTagPolygon
in interface PgGeometryIf
setTagPolygon
in class PgGeometry
public void clearTagElement(int anIndex, int aTag)
PgGeometry
clearTagElement
in interface PgGeometryIf
clearTagElement
in class PgGeometry
public boolean hasTagElement(int anIndex, int aTag)
PgGeometry
hasTagElement
in interface PgGeometryIf
hasTagElement
in class PgGeometry
public void setTagElement(int anIndex, int aTag)
PgGeometry
setTagElement
in interface PgGeometryIf
setTagElement
in class PgGeometry
public boolean update(java.lang.Object event)
update
in interface PsUpdateIf
update
in interface PvGeometryIf
update
in class PgGeometry
event
- carries a lot of informationPsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public void setSpecularColor(java.awt.Color col)
setSpecularColor
in interface PvGeometryIf
setSpecularColor
in class PgJvxSrc
public void drawSpline(java.awt.Graphics g, int x1, int y1, int z1, int x2, int y2, int z2, int x3, int y3, int z3)
public void setTexture(int[] texturePix, int width, int height, int blendingMode, int filteringType)
setTexture
in interface PvGeometryIf
setTexture(int [], int, int, int, int, int, int, int, int)
public void setTexture(int[] texturePix, int width, int height, int tilingWidth, int tilingHeight, int periodic, int blendingMode, int filteringType, int textureSide)
setTexture
in interface PvGeometryIf
setTexture(int [], int, int, int, int)
public void setTransparency(double trans)
setTransparency
in interface PvGeometryIf
setTransparency
in class PgJvxSrc
public void projectItems(PdMatrix projviewMat, PdMatrix projMat, PdMatrix viewMat, PdMatrix modelMat)
public void setModelMatrix(PdMatrix modelMat)
null
then model matrix is removed.setModelMatrix
in interface PgGeometryIf
setModelMatrix
in interface PvGeometryIf
setModelMatrix
in class PgGeometry
public void setAmbientMatrix(PdMatrix ambientMat, PdMatrix ambientInvMat)
null
then ambient model matrix is removed.setAmbientMatrix
in interface PgGeometryIf
setAmbientMatrix
in interface PvGeometryIf
setAmbientMatrix
in class PgGeometry
public void setGlobalVertexNormalSize(double aSize)
setGlobalVertexNormalSize
in interface PvGeometryIf
setGlobalVertexNormalSize
in class PgJvxSrc
public void setGlobalPolygonNormalSize(double aSize)
setGlobalPolygonNormalSize
in interface PvGeometryIf
setGlobalPolygonNormalSize
in class PgJvxSrc
public void setGlobalElementNormalSize(double aSize)
setGlobalElementNormalSize
in interface PvGeometryIf
setGlobalElementNormalSize
in class PgJvxSrc
public void setGlobalPolygonSize(double aSize)
setGlobalPolygonSize
in interface PvGeometryIf
setGlobalPolygonSize
in class PgJvxSrc
public void setGlobalEdgeSize(double aSize)
setGlobalEdgeSize
in interface PvGeometryIf
setGlobalEdgeSize
in class PgJvxSrc
public void setGlobalBndSize(double aSize)
setGlobalBndSize
in interface PvGeometryIf
setGlobalBndSize
in class PgJvxSrc
public void setPolygons(PiVector[] polygon)
setNumPolygons(int)
before to
allocate argument array. If argument array too small do nothing.setPolygons
in interface PvGeometryIf
setPolygons
in class PgJvxSrc
polygon
- array of polygon vectors to be copiedpublic int addPolygon(PiVector aPolygon)
addPolygon
in interface PgGeometryIf
addPolygon
in class PgJvxSrc
aPolygon
- polygon to be added to polygon listpublic void setVertexNormals(PdVector[] normalList)
setVertexNormals
in interface PvGeometryIf
setVertexNormals
in class PgJvxSrc
normalList
- array with new vertex normals, or null.public void assureVertexNormals()
assureVertexNormals
in class PgJvxSrc
public void setElementNormals(PdVector[] normalList)
setElementNormals
in interface PvGeometryIf
setElementNormals
in class PgJvxSrc
normalList
- array with new element normals, or null.public void assureElementNormals()
assureElementNormals
in class PgJvxSrc
public void setNumVectorFields(int num)
setNumVectorFields
in interface PvGeometryIf
setNumVectorFields
in class PgJvxSrc
num
- number of vector fieldspublic void setNumVectors(int ind, int num, int dimOfVectors)
setNumVectors
in interface PvGeometryIf
setNumVectors
in class PgJvxSrc
ind
- index of vector fieldnum
- number of vectors in that vector fielddimOfVectors
- dim of vectors in that vector field"