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 Form| Modifier 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_TAGSDRAW_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_BITAMBIENT_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, showVerticesaddDisplay, 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, toStringaddInspector, 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, updatePanelsequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAmbientProjection, 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, showVectorFieldsassureInspector, getInfoPanel, getName, hasTag, setNamegetFather, setParentpublic boolean m_bPerspectivity
public void init()
PgJvxSrcinit in interface PvGeometryIfinit in class PgJvxSrcpublic void setDimOfVertices(int dim)
PgJvxSrcsetDimOfVertices in interface PvGeometryIfsetDimOfVertices in class PgJvxSrcpublic boolean setLabelAttributes(PiVector[] attr)
setLabelAttributes in interface PvGeometryIfattr - vector with label attributes of all label types.public void setLabelColors(java.awt.Color[] col)
setLabelColors in interface PvGeometryIfcol - color of all label types.public void setLabelSizes(PdVector size)
setLabelSizes in interface PvGeometryIfsize - Vector with font sizespublic void setLabelStyles(PiVector style)
setLabelStyles in interface PvGeometryIfstyle - Vector with font sizespublic void setLabelFonts(java.lang.String[] name)
setLabelFonts in interface PvGeometryIfname - Array with font namespublic void setVisible(boolean flag)
setVisible in interface PgGeometryIfsetVisible in interface PvGeometryIfsetVisible in class PgGeometryPgGeometry.isVisible()public int getDrawingOrder()
getDrawingOrder in interface PvGeometryIfpublic void setDrawingOrder(int pos)
setDrawingOrder in interface PvGeometryIfpublic boolean isSpecial()
public void setSpecial(boolean flag)
flag - true if this geometry is specialpublic void setGeometry(PgGeometryIf aGeometry)
setGeometry in interface PvGeometryIfpublic PgGeometryIf getGeometry()
getGeometry in interface PvGeometryIfpublic boolean getState(int aKey)
getState in class PgGeometryaKey - flag to be set, choose among PvGeometryIf.SHOW_...public void setState(int aKey,
boolean state)
setState in interface PgGeometryIfsetState in interface PvGeometryIfsetState in class PgJvxSrcaKey - 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)
PgJvxSrcPvGeometryIf.clearTagVertex in interface PgGeometryIfclearTagVertex in class PgJvxSrcpublic boolean hasTagVertex(int anIndex,
int aTag)
PgJvxSrcPvGeometryIf.hasTagVertex in interface PgGeometryIfhasTagVertex in class PgJvxSrcpublic void setTagVertex(int anIndex,
int aTag)
PgJvxSrcPvGeometryIf.setTagVertex in interface PgGeometryIfsetTagVertex in class PgJvxSrcpublic void clearTagPolygon(int anIndex,
int aTag)
PgGeometryclearTagPolygon in interface PgGeometryIfclearTagPolygon in class PgGeometrypublic boolean hasTagPolygon(int anIndex,
int aTag)
PgGeometryhasTagPolygon in interface PgGeometryIfhasTagPolygon in class PgGeometrypublic void setTagPolygon(int anIndex,
int aTag)
PgGeometrysetTagPolygon in interface PgGeometryIfsetTagPolygon in class PgGeometrypublic void clearTagElement(int anIndex,
int aTag)
PgGeometryclearTagElement in interface PgGeometryIfclearTagElement in class PgGeometrypublic boolean hasTagElement(int anIndex,
int aTag)
PgGeometryhasTagElement in interface PgGeometryIfhasTagElement in class PgGeometrypublic void setTagElement(int anIndex,
int aTag)
PgGeometrysetTagElement in interface PgGeometryIfsetTagElement in class PgGeometrypublic boolean update(java.lang.Object event)
update in interface PsUpdateIfupdate in interface PvGeometryIfupdate in class PgGeometryevent - carries a lot of informationPsObject.setParent(PsUpdateIf),
PsObject.getFather(),
PsObject.addUpdateListener(PsUpdateIf)public void setSpecularColor(java.awt.Color col)
setSpecularColor in interface PvGeometryIfsetSpecularColor in class PgJvxSrcpublic 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 PvGeometryIfsetTexture(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 PvGeometryIfsetTexture(int [], int, int, int, int)public void setTransparency(double trans)
setTransparency in interface PvGeometryIfsetTransparency in class PgJvxSrcpublic void projectItems(PdMatrix projviewMat, PdMatrix projMat, PdMatrix viewMat, PdMatrix modelMat)
public void setModelMatrix(PdMatrix modelMat)
null then model matrix is removed.setModelMatrix in interface PgGeometryIfsetModelMatrix in interface PvGeometryIfsetModelMatrix in class PgGeometrypublic void setAmbientMatrix(PdMatrix ambientMat, PdMatrix ambientInvMat)
null then ambient model matrix is removed.setAmbientMatrix in interface PgGeometryIfsetAmbientMatrix in interface PvGeometryIfsetAmbientMatrix in class PgGeometrypublic void setGlobalVertexNormalSize(double aSize)
setGlobalVertexNormalSize in interface PvGeometryIfsetGlobalVertexNormalSize in class PgJvxSrcpublic void setGlobalPolygonNormalSize(double aSize)
setGlobalPolygonNormalSize in interface PvGeometryIfsetGlobalPolygonNormalSize in class PgJvxSrcpublic void setGlobalElementNormalSize(double aSize)
setGlobalElementNormalSize in interface PvGeometryIfsetGlobalElementNormalSize in class PgJvxSrcpublic void setGlobalPolygonSize(double aSize)
setGlobalPolygonSize in interface PvGeometryIfsetGlobalPolygonSize in class PgJvxSrcpublic void setGlobalEdgeSize(double aSize)
setGlobalEdgeSize in interface PvGeometryIfsetGlobalEdgeSize in class PgJvxSrcpublic void setGlobalBndSize(double aSize)
setGlobalBndSize in interface PvGeometryIfsetGlobalBndSize in class PgJvxSrcpublic void setPolygons(PiVector[] polygon)
setNumPolygons(int) before to
allocate argument array. If argument array too small do nothing.setPolygons in interface PvGeometryIfsetPolygons in class PgJvxSrcpolygon - array of polygon vectors to be copiedpublic int addPolygon(PiVector aPolygon)
addPolygon in interface PgGeometryIfaddPolygon in class PgJvxSrcaPolygon - polygon to be added to polygon listpublic void setVertexNormals(PdVector[] normalList)
setVertexNormals in interface PvGeometryIfsetVertexNormals in class PgJvxSrcnormalList - array with new vertex normals, or null.public void assureVertexNormals()
assureVertexNormals in class PgJvxSrcpublic void setElementNormals(PdVector[] normalList)
setElementNormals in interface PvGeometryIfsetElementNormals in class PgJvxSrcnormalList - array with new element normals, or null.public void assureElementNormals()
assureElementNormals in class PgJvxSrcpublic void setNumVectorFields(int num)
setNumVectorFields in interface PvGeometryIfsetNumVectorFields in class PgJvxSrcnum - number of vector fieldspublic void setNumVectors(int ind,
int num,
int dimOfVectors)
setNumVectors in interface PvGeometryIfsetNumVectors in class PgJvxSrcind - index of vector fieldnum - number of vectors in that vector fielddimOfVectors - dim of vectors in that vector field"