|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jv.object.PsObject
|
+--jv.project.PgGeometry
|
+--jv.project.PgJvxSrc
Container of very diverse geometry data of points, curves, surfaces, and volumes. This class allows temporary storage and exchange of data. For example, this class is filled by loaders and later assigned to specialized geometry classes for further processing.
Note, this class is not intended to perform geometric operations or
even to modify data once it is allocated or assigned. For such operations
use more specialized classes as e.g. PgPointSet,
PgPolygonSet, or PgElementSet.
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, NUM_TAGS |
| Constructor Summary | |
PgJvxSrc()
Constructs a geometry container whose vertex dimension is initialized to 3. |
|
| Method Summary | |
int |
addEdge(PiVector anEdge)
Add new edge to the end of the edge list. |
int |
addElement(PiVector anElement)
Add element to the element list and increase number of elements. |
int |
addPolygon(PiVector anPolygon)
Add new polygon to the end of the polygon list. |
int |
addVertex(PdVector aVertex)
Add new vertex to the end of the vertex list Method just calls setVertex(numVertices, PdVector). |
void |
assureEdgeColors()
Assures respectively allocates correct length of edge color array. |
void |
assureElementBackColors()
Assures respectively allocates correct length of element back face color array. |
void |
assureElementColors()
Assures respectively allocates correct length of element color array. |
void |
assureElementNormals()
Assures respectively allocates correct length of element normal array. |
void |
assureElementTextures()
Assures respectively allocates correct length of element texture array. |
void |
assureNeighbours()
Assures correct length of neighbour array and, if any length changes, initializes with -1.
|
void |
assurePolygonColors()
Assures respectively allocates correct length of polygon color array. |
void |
assurePolygonNormals()
Assures respectively allocates correct length of polygon normal array. |
void |
assureVectorColors(int ind)
Assures respectively allocates correct length of element color array. |
void |
assureVertexColors()
Assures respectively allocates correct length of vertex color array. |
void |
assureVertexNormals()
Assures respectively allocates correct length of vertex normal array. |
void |
assureVertexTextures()
Assures respectively allocates correct length of vertex texture array. |
void |
clearTagVertex(int anIndex,
int aTag)
Clear a single tag of a vertex. |
java.lang.Object |
clone()
Duplicate geometry by recursively cloning all instance variables except inspector panels and lists of registered listeners. |
void |
copy(PgJvxSrc src)
|
PdVector[] |
getAmbientBounds()
Compute bounding box of this geometry from the set of all vertices, or return null if no vertices. |
PdVector[] |
getBounds()
Compute bounding box of the vertices which are transformed with ambient and model matrix. |
int |
getDimOfVectors(int ind)
Get uniform number of components of each vector in a vector field. |
PiVector |
getEdge(int anIndex)
Get a reference to index vector of edge with given index. |
java.awt.Color[] |
getEdgeColors()
Get color array for read and write access. |
PiVector[] |
getEdges()
Get edge array for read and write access, but do not modify the size of any edge. |
PiVector |
getElement(int anIndex)
Get a reference to an individual element. |
java.awt.Color[] |
getElementBackColors()
Get backside element color array for read and write access. |
java.awt.Color[] |
getElementColors()
Get element color array for read and write access. |
PdVector[] |
getElementNormals()
Get element normal array for read and write access, but do not modify the size of any normal vector. |
PiVector[] |
getElements()
Get element array for read and write access, but do not modify the size of any element. |
PdVector[][] |
getElementTextures()
Get element texture array for read and write access, but do not modify the size of any texture vector. |
java.awt.Color |
getGlobalBndColor()
Get global boundary color which is used if no local colors are available. |
double |
getGlobalBndSize()
Get thickness in pixels of boundary when drawn in display. |
java.awt.Color |
getGlobalBndTagColor()
Get global color of tagged boundaries. |
java.awt.Color |
getGlobalEdgeColor()
Get global edge color which is used if no local colors are available. |
double |
getGlobalEdgeSize()
Get global radius in pixels of circle to visualize vertices in display. |
java.awt.Color |
getGlobalEdgeTagColor()
Get global color of tagged vertices. |
java.awt.Color |
getGlobalElementBackColor()
Get global color of backface of elements. |
java.awt.Color |
getGlobalElementColor()
Get global element color which is used if no local colors are available. |
java.awt.Color |
getGlobalElementNormalColor()
Get global element normal color which is used if no local colors are available. |
double |
getGlobalElementNormalLength()
Get length factor of normal vectors when drawn in display. |
double |
getGlobalElementNormalSize()
Get thickness in pixels of normals when drawn in display. |
java.awt.Color |
getGlobalElementTagColor()
Get global color of tagged elements. |
java.awt.Color |
getGlobalPolygonColor()
Get global polygon color which is used if no local colors are available. |
java.awt.Color |
getGlobalPolygonNormalColor()
Get global polygon normal color which is used if no local colors are available. |
double |
getGlobalPolygonNormalLength()
Get length factor of normal vectors when drawn in display. |
double |
getGlobalPolygonNormalSize()
Get thickness in pixels of normals when drawn in display. |
double |
getGlobalPolygonSize()
Get global radius in pixels of circle to visualize vertices in display. |
java.awt.Color |
getGlobalPolygonTagColor()
Get global color of tagged vertices. |
java.awt.Color |
getGlobalVectorColor(int ind)
Get global color of vector field which is used if no local colors are available. |
double |
getGlobalVectorLength(int ind)
Get length factor of vectors of vector field when drawn in display. |
double |
getGlobalVectorSize(int ind)
Get thickness in pixels of vectors of vector field when drawn in display. |
java.awt.Color |
getGlobalVertexColor()
Get global vertex color which is used if no local colors are available. |
java.awt.Color |
getGlobalVertexNormalColor()
Get global vertex normal color which is used if no local colors are available. |
double |
getGlobalVertexNormalLength()
Get length factor of vertex normal vectors when drawn in display. |
double |
getGlobalVertexNormalSize()
Get thickness in pixels of vertex normals when drawn in display. |
double |
getGlobalVertexSize()
Get global radius in pixels of circle to visualize vertices in display. |
java.awt.Color |
getGlobalVertexTagColor()
Get global color of tagged vertices. |
PgJvxSrc |
getJvx()
Fills a geometry object with data from this instance, for example, to print to file. |
PiVector[] |
getNeighbours()
Get neighbourhood information. |
int |
getNumEdges()
Get number of allocated and used edges. |
int |
getNumElements()
Get number of allocated and used elements. |
int |
getNumPolygons()
Get number of allocated and used polygons. |
int |
getNumVectorFields()
Get number of allocated and used vector fields. |
int |
getNumVectors(int ind)
Get number of vectors in vector field with given index. |
int |
getNumVertices()
Get number of vertices in vertex array. |
PiVector |
getPolygon(int anIndex)
Get a reference to index vector of polygon with given index. |
java.awt.Color[] |
getPolygonColors()
Get color array for read and write access. |
PdVector[] |
getPolygonNormals()
Get vertex normal array for read and write access, but do not modify the size of any normal vector. |
PiVector[] |
getPolygons()
Get polygon array for read and write access, but do not modify the size of any polygon. |
java.awt.Image |
getTextureImage()
Get image of texture. |
java.lang.String |
getTextureImageName()
Get name of texture image, a URL or full path name. |
int |
getType()
Get type of geometry, for example PvGeometryIf#GEOM_POINT_SET
and PvGeometryIf#GEOM_ELEMENT_SET. |
java.awt.Color[] |
getVectorFieldColors(int ind)
Get color array of a vector field for read and write access. |
java.lang.String |
getVectorFieldName(int ind)
Get name of vector field. |
PdVector[] |
getVectors(int ind)
Get array of a vectors of a field for read and write access. |
PdVector |
getVertex(int anIndex)
Get a reference to an individual vertex. |
java.awt.Color[] |
getVertexColors()
Get vertex color array for read and write access. |
java.lang.String[][] |
getVertexFunctions()
|
PdVector[] |
getVertexNormals()
Get vertex normal array for read and write access, but do not modify the size of any normal vector. |
PdVector[] |
getVertexTextures()
Get vertex texture array for read and write access, but do not modify the size of any texture vector. |
PdVector[] |
getVertices()
Get vertex array for read and write access, but do not modify the size of any vertex. |
boolean |
hasTagVertex(int anIndex,
int aTag)
Check whether vertex has given tag. |
void |
init()
Initializes and resets geometry. |
boolean |
isDefaultLabelEnabled()
Determine whether drawing of default labels, i.e. item indices, is enabled. |
boolean |
isShowingBackface()
Determine flag to enable drawing of backfacing elements whose normal points away from camera. |
boolean |
isShowingBoundaries()
Determines whether drawing of boundary curves is enabled. |
boolean |
isShowingEdgeColors()
Determines whether drawing of edge colors is enabled. |
boolean |
isShowingEdgeLabels()
Determine whether showing of edge labels is enabled. |
boolean |
isShowingEdges()
Determines whether drawing of element edges is enabled. |
boolean |
isShowingElementBackColor()
Determines whether drawing of global backface element color is enabled. |
boolean |
isShowingElementBackColors()
Determines whether drawing of individual backface element colors is enabled. |
boolean |
isShowingElementColors()
Determines whether drawing of individual element colors is enabled. |
boolean |
isShowingElementLabels()
Determine whether showing of element labels is enabled. |
boolean |
isShowingElementNormalArrow()
Determines whether drawing of arrow of element normals is enabled. |
boolean |
isShowingElementNormals()
Determines whether drawing of element normals is enabled. |
boolean |
isShowingElements()
Determines whether drawing of elements is enabled. |
boolean |
isShowingElementTexture()
Determines whether drawing of element texture is enabled. |
boolean |
isShowingIndices()
Check whether showing of indices is switched on. |
boolean |
isShowingOutline()
Determines whether drawing of outline element edges is enabled. |
boolean |
isShowingPolygonColors()
Determines whether drawing of polygon colors is enabled. |
boolean |
isShowingPolygonEndArrow()
Determine whether drawing of arrow at last point of polygon is enabled. |
boolean |
isShowingPolygonLabels()
Determine whether showing of polygon labels is enabled. |
boolean |
isShowingPolygonNormalArrow()
Determines whether drawing of arrow of polygon normals is enabled. |
boolean |
isShowingPolygonNormals()
Determines whether drawing of polygon normals is enabled. |
boolean |
isShowingPolygons()
Determines whether drawing of polygons is enabled. |
boolean |
isShowingPolygonStartArrow()
Determine whether drawing of arrow at first point of polygon is enabled. |
boolean |
isShowingVectorArrows(int ind)
Get flag if tip of vectors is shown as arrow. |
boolean |
isShowingVectorColors(int ind)
Get flag to enable drawing of individual vertex colors of a vector field. |
boolean |
isShowingVectorField(int ind)
Get flag to enable drawing of vectors of a vector field. |
boolean |
isShowingVertexColors()
Determines whether drawing of vertex colors is enabled. |
boolean |
isShowingVertexLabels()
Determine whether showing of vertex labels is enabled. |
boolean |
isShowingVertexNormalArrow()
Determines whether drawing of arrow of vertex normals is enabled. |
boolean |
isShowingVertexNormals()
Determines whether drawing of vertex normals is enabled. |
boolean |
isShowingVertexTexture()
Determines whether drawing of vertex texture is enabled. |
boolean |
isShowingVertices()
Determines whether drawing of vertices is enabled. |
boolean |
isVectorElementBased(int ind)
Get flag whether vector field is element based or vertex based. |
boolean |
makeElementColorsFromXYZ()
Create color from the element position within its bounding box which is interpreted as RGB cube. |
boolean |
makeElementNormals()
Compute element normals from edge crossproducts. |
void |
makeQuadrConn(int uDiscr,
int vDiscr,
boolean uClosed,
boolean vClosed)
Generate element and neighbourhood information for a quadrilateral surface. |
void |
paint(PvGeometryIf dc)
Major rendering method fills an internal container class supplied by the display. |
PgGeometry |
reflect(PdMatrix mat,
boolean bOrient,
boolean bVector)
Generate a cloned geometry and transform vertices by a matrix. |
void |
setDefaultLabelEnabled(boolean flag)
Determine whether drawing of default labels, i.e. item indices, is enabled. |
void |
setDimOfElements(int aSize)
Let all elements have same number of vertices aSize<>0,
or individual aSize=-1.
|
void |
setDimOfPolygons(int aSize)
Let all polygons have same number of vertices aSize<>0, or individual aSize=-1.
|
void |
setDimOfVertices(int dim)
Assign dimension of vertices. |
boolean |
setEdge(int anIndex,
PiVector aEdge)
Set index vector of edge with given index. |
void |
setEdgeColors(java.awt.Color[] color)
Copy edge colors of list to existing array of edge colors. |
void |
setEdges(PiVector[] edge)
Copy the first m_numEdges of given array into edge array. |
boolean |
setElement(int anIndex,
PiVector newElem)
Assign element data to an existing element. |
void |
setElementBackColors(java.awt.Color[] color)
Copy backface element colors of list to existing array of element colors. |
void |
setElementBased(int ind,
boolean flag)
Deprecated. use setVectorElementBased(int, boolean) instead. |
void |
setElementColors(java.awt.Color[] color)
Copy element colors of list to existing array of element colors. |
void |
setElementNormals(PdVector[] normal)
Copy element normals of list to existing array of element normals. |
void |
setElements(PiVector[] element)
Copy the first m_numElements of given array into element array. |
void |
setElementTextures(PdVector[][] texCoords)
Copy element textures of list to existing array of element textures. |
void |
setGlobalBndColor(java.awt.Color color)
Set global boundary color to be used if no local colors are available. |
void |
setGlobalBndSize(double size)
Set thickness in pixels of boundary when drawn in display. |
void |
setGlobalBndTagColor(java.awt.Color color)
Set global color of tagged boundaries. |
void |
setGlobalEdgeColor(java.awt.Color color)
Set global edge color to be used if no local colors are available. |
void |
setGlobalEdgeSize(double size)
Set global radius in pixels of circle to visualize vertices in display. |
void |
setGlobalEdgeTagColor(java.awt.Color color)
Set global color of tagged vertices. |
void |
setGlobalElementBackColor(java.awt.Color color)
Set global color of backface of elements. |
void |
setGlobalElementColor(java.awt.Color color)
Set global vertex color to be used if no local colors are available. |
void |
setGlobalElementNormalColor(java.awt.Color color)
Set global element normal color to be used if no local colors are available. |
void |
setGlobalElementNormalLength(double length)
Get length factor of normal vectors when drawn in display. |
void |
setGlobalElementNormalSize(double size)
Get thickness in pixels of normals when drawn in display. |
void |
setGlobalElementTagColor(java.awt.Color color)
Set global color of tagged elements. |
void |
setGlobalPolygonColor(java.awt.Color color)
Set global polygon color to be used if no local colors are available. |
void |
setGlobalPolygonNormalColor(java.awt.Color color)
Set global polygon normal color to be used if no local colors are available. |
void |
setGlobalPolygonNormalLength(double length)
Get length factor of normal vectors when drawn in display. |
void |
setGlobalPolygonNormalSize(double size)
Get thickness in pixels of normals when drawn in display. |
void |
setGlobalPolygonSize(double size)
Set global radius in pixels of circle to visualize vertices in display. |
void |
setGlobalPolygonTagColor(java.awt.Color color)
Set global color of tagged vertices. |
boolean |
setGlobalVectorColor(int ind,
java.awt.Color color)
Set global color of vector field to be used if no local colors are available. |
boolean |
setGlobalVectorLength(int ind,
double length)
Set length factor of vectors of vector field when drawn in display. |
boolean |
setGlobalVectorSize(int ind,
double size)
Set thickness in pixels of vectors of vector field when drawn in display. |
void |
setGlobalVertexColor(java.awt.Color color)
Set global vertex color to be used if no local colors are available. |
void |
setGlobalVertexNormalColor(java.awt.Color color)
Set global vertex normal color to be used if no local colors are available. |
void |
setGlobalVertexNormalLength(double length)
Get length factor of vertex normal vectors when drawn in display. |
void |
setGlobalVertexNormalSize(double size)
Get thickness in pixels of vertex normals when drawn in display. |
void |
setGlobalVertexSize(double size)
Set global radius in pixels of circle to visualize vertices in display. |
void |
setGlobalVertexTagColor(java.awt.Color color)
Set global color of tagged vertices. |
void |
setJvx(PgJvxSrc src)
Fill this instance with data from a geometry source, for example, previously read from file. |
void |
setNeighbours(PiVector[] neighbour)
Copy neighbour array to existing array of neighbours. |
void |
setNumEdges(int aNumEdges,
int dimOfEdges)
Allocate given number of edges, and allocate normals, colors etc. if they already exist. |
void |
setNumElements(int numElements)
Allocate given number of elements, and allocate neighbours, normals, colors etc. if they already exist. |
void |
setNumPolygons(int numPolygons)
Allocate given number of polygons, and allocate normals, colors etc. if they already exist. |
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 |
setNumVertices(int numVertices)
Allocate given number of vertices, and allocate normals, colors etc. if they already exist. |
boolean |
setPolygon(int anIndex,
PiVector aPolygon)
Set index vector of polygon with given index. |
void |
setPolygonColors(java.awt.Color[] color)
Copy polygon colors of list to existing array of polygon colors. |
void |
setPolygonNormals(PdVector[] normal)
Copy polygon normals of list to existing array of polygon normals. |
void |
setPolygons(PiVector[] polygon)
Copy the first m_numPolygons of given array into polygon array. |
void |
setState(int aKey,
boolean aState)
Set drawing flags of this geometry from within the display. |
void |
setTagVertex(int anIndex,
int aTag)
Set a tag of a vertex. |
void |
setTextureImage(java.awt.Image image)
Set image of texture. |
void |
setTextureImageName(java.lang.String image)
Set file name of texture image as relative path or protocoll. |
void |
setType(int type)
Set type of geometry, for example PvGeometryIf#GEOM_POINT_SET
and PvGeometryIf#GEOM_ELEMENT_SET.
|
void |
setVectorColors(int ind,
java.awt.Color[] list)
Copy vector colors of list to existing array of vector colors. |
void |
setVectorElementBased(int ind,
boolean flag)
Set flag whether vector field is element based or vertex based. |
void |
setVectorFieldName(int ind,
java.lang.String name)
Set name of vector field. |
void |
setVectors(int ind,
PdVector[] list)
Copy all vectors of vector list to existing array of vectors. |
boolean |
setVertex(int anIndex,
PdVector aVertex)
Copy new vertex to vertex at specified position in the vertex list |
void |
setVertexColors(java.awt.Color[] aVertexColorList)
Copy vertex colors of list to existing array of vertex colors. |
void |
setVertexFunctions(java.lang.String[][] vertex)
Copy all vertices of vertex list to existing array of vertices. |
void |
setVertexNormals(PdVector[] aVertexNormalList)
Copy vertex normals of list to existing array of vertex normals. |
void |
setVertexTextures(PdVector[] aVertexTextureList)
Copy vertex textures of list to existing array of vertex textures. |
void |
setVertices(PdVector[] vertex)
Copy all vertices of vertex list to existing array of vertices. |
void |
showBackface(boolean flag)
Set flag to enable drawing of backfacing elements whose normal points away from camera. |
void |
showBoundaries(boolean flag)
Set flag to enable drawing of boundary curves. |
void |
showEdgeColors(boolean flag)
Set flag to enable drawing of edge colors. |
void |
showEdgeLabels(boolean flag)
Set flag to enable drawing of edge labels in display. |
void |
showEdges(boolean flag)
Set flag to enable drawing of element edges. |
void |
showElementBackColor(boolean flag)
Set flag to enable drawing of backface element colors. |
void |
showElementBackColors(boolean flag)
Set flag to enable drawing of individual backface element colors. |
void |
showElementColors(boolean flag)
Set flag to enable drawing of individual element colors. |
void |
showElementLabels(boolean flag)
Set flag to enable drawing of element labels in display. |
void |
showElementNormalArrow(boolean flag)
Set flag to enable drawing of arrow of element normal. |
void |
showElementNormals(boolean flag)
Set flag to enable drawing of element normals. |
void |
showElements(boolean flag)
Set flag to enable drawing of elements. |
void |
showElementTexture(boolean flag)
Set flag to enable drawing of vertex texture. |
void |
showIndices(boolean flag)
Set flag to drawing of indices in display. |
void |
showOutline(boolean flag)
Set flag to enable drawing of outline element edges. |
void |
showPolygonColors(boolean flag)
Set flag to enable drawing of polygon colors. |
void |
showPolygonEndArrow(boolean flag)
Set flag to enable drawing of arrow at last point of polygons. |
void |
showPolygonLabels(boolean flag)
Set flag to enable drawing of polygon labels in display. |
void |
showPolygonNormalArrow(boolean flag)
Set flag to enable drawing of arrow of polygon normal. |
void |
showPolygonNormals(boolean flag)
Set flag to enable drawing of polygon normals. |
void |
showPolygons(boolean flag)
Set flag to enable drawing of polygons. |
void |
showPolygonStartArrow(boolean flag)
Set flag to enable drawing of arrow at first point of polygons. |
void |
showVectorArrows(int ind,
boolean flag)
Set flag if tip of vectors is shown as arrow. |
void |
showVectorColors(int ind,
boolean flag)
Set flag to enable drawing of individual vertex colors of a vector field. |
void |
showVectorField(int ind,
boolean flag)
Set flag to enable drawing of vectors of a vector field. |
void |
showVertexColors(boolean flag)
Set flag to enable drawing of vertex colors. |
void |
showVertexLabels(boolean flag)
Set flag to enable drawing of vertex labels in display. |
void |
showVertexNormalArrow(boolean flag)
Set flag to enable drawing of arrow of vertex normal. |
void |
showVertexNormals(boolean flag)
Set flag to enable drawing of vertex normals. |
void |
showVertexTexture(boolean flag)
Set flag to enable drawing of element texture. |
void |
showVertices(boolean flag)
Set flag to enable drawing of vertices. |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.project.PgGeometryIf |
assureInspector, getInfoPanel, getName, setName |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, setParent |
| Constructor Detail |
public PgJvxSrc()
PgJvxSrc(int)
to avoid problems with the init() method. This constructor explicitly
calls the init() method. These problems are due to JAX.#PgJvxSrc(int)| Method Detail |
public void init()
init in class PgGeometrypublic void setDimOfVertices(int dim)
public PdVector[] getBounds()
The two returned bounding box vectors are 3-dimensional. If dimension of vertices is less than 3 then remaining components are zeroed.
Note, transformation not supported yet.
getBounds in class PgGeometrygetAmbientBounds()public PdVector[] getAmbientBounds()
getAmbientBounds in class PgGeometrygetBounds()
public void setState(int aKey,
boolean aState)
setState in class PgGeometryaKey - flag to be set, choose among PvGeometryIf.SHOW_...aState - enable or disable statepublic PgJvxSrc getJvx()
getJvx in class PgGeometrypublic void setJvx(PgJvxSrc src)
setJvx in class PgGeometrysrc - a geometry source used to fill this instance with data.public void copy(PgJvxSrc src)
public java.lang.Object clone()
null.
Tags of this object are not copied but maybe copied of subclasses.clone in class PgGeometrycopy(PgJvxSrc)public void paint(PvGeometryIf dc)
jv.project.PgGeometryIf for detailed information.paint in class PgGeometryPgGeometryIfpublic int getType()
PvGeometryIf#GEOM_POINT_SET
and PvGeometryIf#GEOM_ELEMENT_SET.public void setType(int type)
PvGeometryIf#GEOM_POINT_SET
and PvGeometryIf#GEOM_ELEMENT_SET.
Change display of vertices to default setting depending on geometry type.public int getNumVertices()
public PdVector[] getVertices()
public java.awt.Color[] getVertexColors()
public PdVector[] getVertexNormals()
public PdVector[] getVertexTextures()
public int getNumPolygons()
public PiVector[] getPolygons()
public java.awt.Color[] getPolygonColors()
public PdVector[] getPolygonNormals()
public int getNumEdges()
public PiVector[] getEdges()
public java.awt.Color[] getEdgeColors()
public int getNumElements()
public PiVector[] getElements()
public java.awt.Color[] getElementColors()
public java.awt.Color[] getElementBackColors()
public PdVector[] getElementNormals()
public PdVector[][] getElementTextures()
public PiVector[] getNeighbours()
public void clearTagVertex(int anIndex,
int aTag)
PvGeometryIf.clearTagVertex in class PgGeometry
public boolean hasTagVertex(int anIndex,
int aTag)
PvGeometryIf.hasTagVertex in class PgGeometry
public void setTagVertex(int anIndex,
int aTag)
PvGeometryIf.setTagVertex in class PgGeometrypublic int addVertex(PdVector aVertex)
setVertex(numVertices, PdVector).addVertex in class PgGeometryPdVector - vertex to be added to vertex listpublic PdVector getVertex(int anIndex)
getVertex in class PgGeometryanIndex - index of vertex
public boolean setVertex(int anIndex,
PdVector aVertex)
setVertex in class PgGeometryint - index of vertex positionPdVector - vertex to be copied to vertex listpublic void setNumVertices(int numVertices)
dim - uniform dimension of points, i.e. number of coordinates per pointpublic void assureVertexColors()
public void assureVertexNormals()
public void assureVertexTextures()
getDimOfTextures().public int getDimOfVectors(int ind)
public int getNumVectors(int ind)
public void setNumVectors(int ind,
int num,
int dimOfVectors)
ind - index of vector fieldnum - number of vectors in that vector fielddimOfVectors - dim of vectors in that vector fieldpublic int getNumVectorFields()
public void setNumVectorFields(int num)
num - number of vector fieldspublic PdVector[] getVectors(int ind)
public void setVectors(int ind,
PdVector[] list)
ind - index of vector fieldlist - array with new vectorspublic java.lang.String getVectorFieldName(int ind)
public void setVectorFieldName(int ind,
java.lang.String name)
public boolean isShowingVectorArrows(int ind)
public void showVectorArrows(int ind,
boolean flag)
public boolean isVectorElementBased(int ind)
public void setVectorElementBased(int ind,
boolean flag)
ind - index of vector field.flag - true if element based vf, false if vertex based vf.
public void setElementBased(int ind,
boolean flag)
public boolean isShowingVectorField(int ind)
public void showVectorField(int ind,
boolean flag)
public boolean isShowingVectorColors(int ind)
public void showVectorColors(int ind,
boolean flag)
public java.awt.Color getGlobalVectorColor(int ind)
public boolean setGlobalVectorColor(int ind,
java.awt.Color color)
public double getGlobalVectorLength(int ind)
public boolean setGlobalVectorLength(int ind,
double length)
public double getGlobalVectorSize(int ind)
public boolean setGlobalVectorSize(int ind,
double size)
public void assureVectorColors(int ind)
public java.awt.Color[] getVectorFieldColors(int ind)
public void setVectorColors(int ind,
java.awt.Color[] list)
ind - index of vector fieldlist - array with new vector colorspublic void setDimOfPolygons(int aSize)
aSize<>0, or individual aSize=-1.
It is more efficient to call method before setNumPolygons().aSize - Number of vertices for all polygons.PgPolygonSet#setNumPolygons(int)public void setNumPolygons(int numPolygons)
public void assurePolygonColors()
public void assurePolygonNormals()
public void setNumEdges(int aNumEdges,
int dimOfEdges)
public void assureEdgeColors()
public void setDimOfElements(int aSize)
aSize<>0,
or individual aSize=-1.
It is more efficient to call method before setNumElements().
Argument must be -1 or >=3. Other values lead to a warning message.
aSize - Number of vertices for all elements.setNumElements(int)public void setNumElements(int numElements)
public void assureNeighbours()
-1.
Length of array is equal to all lengths of element array.
Variable m_dimOfElements is used to determine length of neighbour array for
each element if m_dimOfElement!=-1.
Initialization of neighbour array with -1 marks each edge as boundary edge.
If neighbour array or any individual vector changes length, then neighbour is set to -1.
public void assureElementColors()
public void assureElementBackColors()
public void assureElementNormals()
public void assureElementTextures()
getDimOfTextures().
Texture values are lost if number of elements changes.public java.awt.Color getGlobalVertexColor()
public java.awt.Color getGlobalVertexTagColor()
public double getGlobalVertexSize()
public java.awt.Color getGlobalVertexNormalColor()
public double getGlobalVertexNormalLength()
public double getGlobalVertexNormalSize()
public void setGlobalVertexColor(java.awt.Color color)
public void setGlobalVertexTagColor(java.awt.Color color)
public void setGlobalVertexSize(double size)
public void setGlobalVertexNormalColor(java.awt.Color color)
public void setGlobalVertexNormalLength(double length)
public void setGlobalVertexNormalSize(double size)
public java.awt.Color getGlobalPolygonColor()
public java.awt.Color getGlobalPolygonTagColor()
public double getGlobalPolygonSize()
public java.awt.Color getGlobalPolygonNormalColor()
public double getGlobalPolygonNormalLength()
public double getGlobalPolygonNormalSize()
public void setGlobalPolygonColor(java.awt.Color color)
public void setGlobalPolygonTagColor(java.awt.Color color)
public void setGlobalPolygonSize(double size)
public void setGlobalPolygonNormalColor(java.awt.Color color)
public void setGlobalPolygonNormalLength(double length)
public void setGlobalPolygonNormalSize(double size)
public java.awt.Color getGlobalEdgeColor()
public java.awt.Color getGlobalEdgeTagColor()
public double getGlobalEdgeSize()
public void setGlobalEdgeColor(java.awt.Color color)
public void setGlobalEdgeTagColor(java.awt.Color color)
public void setGlobalEdgeSize(double size)
public java.awt.Color getGlobalElementColor()
public java.awt.Color getGlobalElementBackColor()
public java.awt.Color getGlobalElementTagColor()
public java.awt.Color getGlobalElementNormalColor()
public double getGlobalElementNormalLength()
public double getGlobalElementNormalSize()
public void setGlobalElementColor(java.awt.Color color)
public void setGlobalElementBackColor(java.awt.Color color)
public void setGlobalElementTagColor(java.awt.Color color)
public void setGlobalElementNormalColor(java.awt.Color color)
public void setGlobalElementNormalLength(double length)
public void setGlobalElementNormalSize(double size)
public java.awt.Color getGlobalBndColor()
public java.awt.Color getGlobalBndTagColor()
public double getGlobalBndSize()
public void setGlobalBndColor(java.awt.Color color)
public void setGlobalBndTagColor(java.awt.Color color)
public void setGlobalBndSize(double size)
public void setVertices(PdVector[] vertex)
vertex - array with new verticespublic java.lang.String[][] getVertexFunctions()
public void setVertexFunctions(java.lang.String[][] vertex)
vertex - array with new verticespublic void setVertexColors(java.awt.Color[] aVertexColorList)
aVertexColorList - array with new vertex colorspublic void setVertexNormals(PdVector[] aVertexNormalList)
aVertexNormalList - array with new vertex normalspublic void setVertexTextures(PdVector[] aVertexTextureList)
aVertexTextureList - array with new vertex texturespublic java.lang.String getTextureImageName()
getTextureImageName in class PgGeometrypublic void setTextureImageName(java.lang.String image)
setTextureImageName in class PgGeometrypublic java.awt.Image getTextureImage()
getTextureImage in class PgGeometrypublic void setTextureImage(java.awt.Image image)
setTextureImage in class PgGeometrypublic void setPolygons(PiVector[] polygon)
#setNumPolygons(int) before to
allocate argument array. If argment array too small do nothing.polygon - array of polygon vectors to be copiedpublic void setPolygonColors(java.awt.Color[] color)
color - array with new polygon colorspublic void setPolygonNormals(PdVector[] normal)
getDimOfVectors() of the geometry.normal - array with new polygon normalspublic int addPolygon(PiVector anPolygon)
setPolygon(PiVector, numPolygons).addPolygon in class PgGeometryPiVector - polygon to be added to polygon listpublic PiVector getPolygon(int anIndex)
getPolygon in class PgGeometryjv.project.PgGeometryIfanIndex - index of polygon to be returned
public boolean setPolygon(int anIndex,
PiVector aPolygon)
setPolygon in class PgGeometryanIndex - index of polygonaPolygon - array with indices of new polygonpublic void setEdges(PiVector[] edge)
#setNumEdges(int, int) before to
allocate argument array. If argment array too small do nothing.edge - array of edge vectors to be copiedpublic void setEdgeColors(java.awt.Color[] color)
color - array with new edge colorspublic int addEdge(PiVector anEdge)
setEdge(PiVector, numEdges).PiVector - edge to be added to edge listpublic PiVector getEdge(int anIndex)
public boolean setEdge(int anIndex,
PiVector aEdge)
anIndex - index of edgeaEdge - array with indices of new edgepublic void setElements(PiVector[] element)
#setNumElements(int) before to
allocate argument array. If argment array too small do nothing.
If dimension of an element exceeds maxDimOfElements then its length
is truncated to this value.element - array of element vectors to be copiedpublic void setElementColors(java.awt.Color[] color)
color - array with new element colorspublic void setElementBackColors(java.awt.Color[] color)
color - array with new element colorspublic void setElementNormals(PdVector[] normal)
getDimOfVectors() of the geometry.normal - array with new element normalspublic void setElementTextures(PdVector[][] texCoords)
getDimOfTextures() of the geometry.texCoords - array with new element texturespublic void setNeighbours(PiVector[] neighbour)
neighbour - array with neighbour informationpublic int addElement(PiVector anElement)
setElement(int, PiVector).
If dimension of element exceeds maxDimOfElements then length of
element is truncated to this value.addElement in class PgGeometryPiVector - element to be added to element listpublic PiVector getElement(int anIndex)
getElement in class PgGeometryanIndex - index of element
public boolean setElement(int anIndex,
PiVector newElem)
setElement in class PgGeometryanIndex - index of elementnewElem - vector with new indices of elementpublic boolean isDefaultLabelEnabled()
isShowingIndices()public boolean isShowingIndices()
isDefaultLabelEnabled(),
#setDefaultLabelEnabled(int)public boolean isShowingVertexLabels()
public boolean isShowingPolygonLabels()
public boolean isShowingEdgeLabels()
public boolean isShowingElementLabels()
public boolean isShowingVertices()
public boolean isShowingVertexNormals()
public boolean isShowingVertexNormalArrow()
public boolean isShowingVertexColors()
public boolean isShowingOutline()
public void setDefaultLabelEnabled(boolean flag)
#showIndices(int)public void showIndices(boolean flag)
isDefaultLabelEnabled(),
setDefaultLabelEnabled(boolean)public void showVertexLabels(boolean flag)
public void showPolygonLabels(boolean flag)
public void showEdgeLabels(boolean flag)
public void showElementLabels(boolean flag)
public void showVertices(boolean flag)
public void showVertexNormals(boolean flag)
public void showVertexNormalArrow(boolean flag)
public void showVertexColors(boolean flag)
public void showOutline(boolean flag)
public boolean isShowingPolygons()
public boolean isShowingPolygonNormals()
public boolean isShowingPolygonNormalArrow()
public boolean isShowingPolygonColors()
public boolean isShowingPolygonStartArrow()
public boolean isShowingPolygonEndArrow()
public void showPolygons(boolean flag)
public void showPolygonNormals(boolean flag)
public void showPolygonNormalArrow(boolean flag)
public void showPolygonColors(boolean flag)
public void showPolygonStartArrow(boolean flag)
public void showPolygonEndArrow(boolean flag)
public boolean isShowingEdges()
public boolean isShowingEdgeColors()
public void showEdges(boolean flag)
public void showEdgeColors(boolean flag)
public boolean isShowingElements()
public boolean isShowingBackface()
public boolean isShowingElementNormals()
public boolean isShowingElementNormalArrow()
public boolean isShowingElementColors()
public boolean isShowingElementBackColor()
public boolean isShowingElementBackColors()
public boolean isShowingBoundaries()
public boolean isShowingVertexTexture()
public boolean isShowingElementTexture()
public void showElements(boolean flag)
public void showBackface(boolean flag)
public void showElementNormals(boolean flag)
public void showElementNormalArrow(boolean flag)
public void showElementColors(boolean flag)
public void showElementBackColor(boolean flag)
public void showElementBackColors(boolean flag)
public void showBoundaries(boolean flag)
public void showVertexTexture(boolean flag)
public void showElementTexture(boolean flag)
public void makeQuadrConn(int uDiscr,
int vDiscr,
boolean uClosed,
boolean vClosed)
uDiscr, - vDiscr Number of lines in u and v direction.PgElementSet#makeCylinderConn(int, int)public boolean makeElementNormals()
Method exists in this class to allow enabling of backface culling even if no element normals have been previously supplied by user.
public boolean makeElementColorsFromXYZ()
public PgGeometry reflect(PdMatrix mat,
boolean bOrient,
boolean bVector)
reflect in class PgGeometrymat - 3*3 or 4*4 transformation matrixbOrient - flag whether to keep the orientation of the geometrybVector - flag whether to keep the orientation of vectors
|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||