|
JavaView® v2.00.008 | ||||||||
| 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.
| Field Summary | |
protected boolean |
m_bDefaultLabelEnabled
Flag whether default labels are shown in display if no label exists for an item. |
protected boolean |
m_bShowBackface
Flag whether backfacing elements are shown in display. |
protected boolean |
m_bShowBoundaries
Flag whether boundary is shown in display. |
protected boolean |
m_bShowEdgeColors
Flag whether to show edge colors or not. |
protected boolean |
m_bShowEdgeLabels
Flag whether labels of edges are shown in display. |
protected boolean |
m_bShowEdges
Flag whether edges are shown in display. |
protected boolean |
m_bShowElementBackColor
Flag to enable showing of global backface color. |
protected boolean |
m_bShowElementBackColors
Flag to enable showing of individual backface color. |
protected boolean |
m_bShowElementColors
Flag whether to show element colors or not. |
protected boolean |
m_bShowElementLabels
Flag whether labels of elements are shown in display. |
protected boolean |
m_bShowElementNormalArrow
Flag whether to show arrow of element normals or not. |
protected boolean |
m_bShowElementNormals
Flag whether to show element normals or not. |
protected boolean |
m_bShowElements
Flag whether elements are shown in display. |
protected boolean |
m_bShowElementTexture
Flag whether to show element texture or not. |
protected boolean |
m_bShowIndices
Flag whether indices of vertices and elements are shown in display. |
protected boolean |
m_bShowOutline
Flag whether edges at horizon are shown thickened in display. |
protected boolean |
m_bShowPolygonColors
Flag whether to show polygon colors or not. |
protected boolean |
m_bShowPolygonEndArrow
Flag whether arrow is shown at last point of polygon. |
protected boolean |
m_bShowPolygonLabels
Flag whether labels of polygons are shown in display. |
protected boolean |
m_bShowPolygonNormalArrow
Flag whether to show arrow of edge normals or not. |
protected boolean |
m_bShowPolygonNormals
Flag whether to show edge normals or not. |
protected boolean |
m_bShowPolygons
Flag whether polygons are shown in display. |
protected boolean |
m_bShowPolygonStartArrow
Flag whether arrow is shown at first point of polygon. |
protected boolean |
m_bShowTaggedBoundaries
Flag whether tagged boundary is shown in display. |
protected boolean |
m_bShowTaggedEdges
Flag whether tagged edges are shown in display. |
protected boolean |
m_bShowTaggedElements
Flag whether tagged elements are shown in display. |
protected boolean |
m_bShowTaggedPolygons
Flag whether tagged polygons are shown in display. |
protected boolean |
m_bShowTaggedVertices
Flag whether tagged vertices are shown in display. |
protected boolean[] |
m_bShowVectorArrow
Flag if tip of vectors is shown as arrow. |
protected boolean[] |
m_bShowVectorField
Flag if vector fields are shown. |
protected boolean |
m_bShowVertexColors
Flag whether to show vertex colors or not. |
protected boolean |
m_bShowVertexLabels
Flag whether labels of vertices are shown in display. |
protected boolean |
m_bShowVertexNormalArrow
Flag whether to show arrow of vertex normals or not. |
protected boolean |
m_bShowVertexNormals
Flag whether to show vertex normals or not. |
protected boolean |
m_bShowVertexTexture
Flag whether to show vertex texture or not. |
protected boolean |
m_bShowVertices
Flag whether vertices are shown in display. |
protected int |
m_dimOfElements
Determines size of elements. |
protected int |
m_dimOfPolygons
Determines size of polygons. |
protected int |
m_dimOfTextures
Number of components per texture coordinate. |
protected PiVector[] |
m_edge
Array with edges of element set. |
protected java.awt.Color[] |
m_edgeColor
Color of each edge. |
protected PiVector[] |
m_element
Array with all polygonal faces. |
protected java.awt.Color[] |
m_elementBackColor
Colors of backside of element set with one color per element. |
protected java.awt.Color[] |
m_elementColor
Colors of element set with one color per element. |
protected PdVector[] |
m_elementNormal
Colors of element set with one normal per element. |
protected PdVector[][] |
m_elementTexture
Texture coordinates for each element. |
protected int |
m_geomType
Type of geometryfor example PvGeometryIf#GEOM_POINT_SET
and PvGeometryIf#GEOM_ELEMENT_SET. |
protected java.awt.Color |
m_globalBndColor
Global color of boundary. |
protected double |
m_globalBndSize
Thickness in pixels of boundary edges. |
protected java.awt.Color |
m_globalBndTagColor
Global color of tagged boundary. |
protected java.awt.Color |
m_globalEdgeColor
Global color of edges applied if no individual edge coloring available. |
protected double |
m_globalEdgeSize
Thickness in pixels of each edge. |
protected java.awt.Color |
m_globalEdgeTagColor
Global color of tagged edges. |
protected java.awt.Color |
m_globalElementBackColor
Global color of backside of elements used in display, applied if enabled. |
protected java.awt.Color |
m_globalElementColor
Global color of elements applied if no individual element coloring available. |
protected java.awt.Color |
m_globalElementNormalColor
Global color of vertex normals used in display, applied if no individual normal coloring available. |
protected double |
m_globalElementNormalLength
Scaling factor of all vertex normals. |
protected double |
m_globalElementNormalSize
Thickness in pixels of each vertex normal. |
protected java.awt.Color |
m_globalElementTagColor
Global color of tagged elements. |
protected java.awt.Color |
m_globalPolygonColor
Global color of polygons applied if no individual polygon coloring available. |
protected java.awt.Color |
m_globalPolygonNormalColor
Global color of vertex normals used in display, applied if no individual normal coloring available. |
protected double |
m_globalPolygonNormalLength
Scaling factor of all vertex normals. |
protected double |
m_globalPolygonNormalSize
Thickness in pixels of each vertex normal. |
protected double |
m_globalPolygonSize
Thickness in pixels of each polygon. |
protected java.awt.Color |
m_globalPolygonTagColor
Global color of tagged polygons. |
protected java.awt.Color[] |
m_globalVectorColor
Global color of all vectors. |
protected double[] |
m_globalVectorLength
Scaling factor of all vectors. |
protected double[] |
m_globalVectorSize
Thickness in pixels of each vector. |
protected java.awt.Color |
m_globalVertexColor
Global color of vertices applied if no individual vertex coloring available. |
protected java.awt.Color |
m_globalVertexNormalColor
Global color of vertex normals applied if no individual normal coloring available. |
protected double |
m_globalVertexNormalLength
Scaling factor of all vertex normals. |
protected double |
m_globalVertexNormalSize
Thickness in pixels of each vertex normal. |
protected double |
m_globalVertexSize
Thickness in pixels of each vertex. |
protected java.awt.Color |
m_globalVertexTagColor
Global color of tagged vertices. |
protected int |
m_maxDimOfElements
Maximal number of vertices per element. |
protected int |
m_maxNumElements
Number of allocated elements. |
protected int |
m_maxNumPolygons
Number of allocated vertices. |
protected int |
m_maxNumVertices
Maximum number of vertices in m_vertex array, internal use only |
protected PiVector[] |
m_neighbour
Array with neighbours of all elements. |
protected int |
m_numEdges
Number of used edges. |
protected int |
m_numElements
Number of used elements. |
protected int |
m_numPolygons
Number of used polygons. |
protected int |
m_numVectorFields
Number of vector fields is equals to size of allocated vector field arrays. |
protected int |
m_numVertices
Number of used vertices. |
protected PiVector[] |
m_polygon
Array with all polygonal polygons. |
protected java.awt.Color[] |
m_polygonColor
Colors of polygon with one color per edge. |
protected PdVector[] |
m_polygonNormal
Normals of polygon with one normal per edge. |
protected java.awt.Image |
m_textureImage
Texture image. |
protected java.lang.String |
m_textureImageName
URL of texture image. |
protected PdVector[][] |
m_vector
Array of vector fields where each field has one vector per vertex or per element. |
protected java.awt.Color[][] |
m_vectorColor
Color of each vector. |
protected boolean[] |
m_vectorIsElementBased
Flag if vector field is element based or vertex based. |
protected java.lang.String[] |
m_vectorName
Name of vector field. |
protected PdVector[] |
m_vertex
Array of points of point set, where dimension of each vertex is the same. |
protected java.awt.Color[] |
m_vertexColor
Colors of point set with one color per vertex. |
protected java.lang.String[][] |
m_vertexFunction
Array of functions of point set, where dimension of each array is the same. |
protected PdVector[] |
m_vertexNormal
Normals of point set with one normal per vertex. |
protected PdVector[] |
m_vertexTexture
Texture coordinates of each vertex in [0,1]*[0,1]. |
| Fields inherited from class jv.project.PgGeometry |
m_ambientProj, m_ambientSpace, m_authorInfo, m_bShowBndBox, m_bShowCenter, m_bShowing, m_bShowTitle, m_center, m_dim, m_dimOfSimplex, m_displayList, m_geometryInfo, m_labelAttribute, m_methodMenu, m_modelMatrix, m_title, m_version, m_versionType |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, m_infoPanel, m_name, m_panelList, m_parent, m_tag, m_updateList, NUM_TAGS |
| Constructor Summary | |
|
PgJvxSrc()
Constructs a geometry container whose vertex dimension is initialized to 3. |
protected |
PgJvxSrc(int dim)
This constructor is protected since it does not invoke the init() method when this class equals PgJvxSrc. |
| 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. |
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[] |
getBounds()
Compute bounding box if geometry has number of vertices, otherwise return null. |
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 element color which is used if no local colors are available. |
double |
getGlobalVectorLength(int ind)
Get length factor of normal vectors when drawn in display. |
double |
getGlobalVectorSize(int ind)
Get thickness in pixels of normals 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 |
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. |
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 |
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 |
isVectorArrowVisible(int ind)
Get flag if tip of vectors is shown as arrow. |
boolean |
isVectorElementBased(int ind)
Get flag if 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. |
protected void |
setDimOfElement(int ind,
int aSize)
Set size of a single element and associated data like neighbour list. |
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 |
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 normal color to be used if no local colors are available. |
boolean |
setGlobalVectorLength(int ind,
double length)
Get length factor of normal vectors when drawn in display. |
boolean |
setGlobalVectorSize(int ind,
double size)
Get thickness in pixels of normals 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. |
protected void |
setMaxNumElements(int numElements)
Major memory allocation routine, all element allocation should be done here. |
protected void |
setMaxNumPolygons(int numPolygons)
All polygon allocation should be done in 'setMaxNumPolygons'. |
protected void |
setMaxNumVertices(int numVertices)
All vertex allocation should be done in 'setMaxNumVertices' method should not be called directly, only subclass.setMaxNumVertices may call it. |
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. |
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 |
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 |
setVectorArrowVisible(int ind,
boolean flag)
Set flag if tip of vectors is shown as arrow. |
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 if 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 vertex 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 |
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, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.project.PgGeometryIf |
getInfoPanel, getName, setName |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, setParent |
| Field Detail |
protected int m_geomType
PvGeometryIf#GEOM_POINT_SET
and PvGeometryIf#GEOM_ELEMENT_SET.protected boolean m_bDefaultLabelEnabled
protected boolean m_bShowIndices
protected boolean m_bShowVertexLabels
protected boolean m_bShowPolygonLabels
protected boolean m_bShowEdgeLabels
protected boolean m_bShowElementLabels
protected boolean m_bShowOutline
protected boolean m_bShowBackface
protected int m_numVertices
protected int m_maxNumVertices
protected PdVector[] m_vertex
getVertices() to obtain vertex array,
and work directly on the vertices.protected java.lang.String[][] m_vertexFunction
protected java.awt.Color[] m_vertexColor
protected PdVector[] m_vertexNormal
protected boolean m_bShowVertices
protected boolean m_bShowTaggedVertices
protected boolean m_bShowVertexNormals
protected boolean m_bShowVertexNormalArrow
protected boolean m_bShowVertexColors
protected double m_globalVertexSize
protected java.awt.Color m_globalVertexColor
protected java.awt.Color m_globalVertexTagColor
protected double m_globalVertexNormalLength
protected double m_globalVertexNormalSize
protected java.awt.Color m_globalVertexNormalColor
protected int m_numVectorFields
protected PdVector[][] m_vector
protected java.awt.Color[][] m_vectorColor
protected java.lang.String[] m_vectorName
protected boolean[] m_bShowVectorField
protected boolean[] m_bShowVectorArrow
protected boolean[] m_vectorIsElementBased
protected double[] m_globalVectorLength
protected double[] m_globalVectorSize
protected java.awt.Color[] m_globalVectorColor
protected int m_dimOfTextures
protected boolean m_bShowVertexTexture
protected boolean m_bShowElementTexture
protected java.lang.String m_textureImageName
protected java.awt.Image m_textureImage
protected PdVector[] m_vertexTexture
protected int m_numPolygons
protected int m_maxNumPolygons
setNumPolygons(int)
This value is adjusted automatically whenever more memory is needed.setNumPolygons(int),
setMaxNumPolygons(int)protected int m_dimOfPolygons
PgPolygonSet#setDimOfPolygons(int)protected PiVector[] m_polygon
protected java.awt.Color[] m_polygonColor
protected PdVector[] m_polygonNormal
protected boolean m_bShowPolygons
protected boolean m_bShowTaggedPolygons
protected boolean m_bShowPolygonNormals
protected boolean m_bShowPolygonNormalArrow
protected boolean m_bShowPolygonColors
protected boolean m_bShowPolygonStartArrow
protected boolean m_bShowPolygonEndArrow
protected java.awt.Color m_globalPolygonColor
protected java.awt.Color m_globalPolygonTagColor
protected double m_globalPolygonSize
protected double m_globalPolygonNormalLength
protected double m_globalPolygonNormalSize
protected java.awt.Color m_globalPolygonNormalColor
protected int m_numEdges
protected PiVector[] m_edge
protected boolean m_bShowEdges
protected boolean m_bShowTaggedEdges
protected boolean m_bShowEdgeColors
protected java.awt.Color[] m_edgeColor
protected java.awt.Color m_globalEdgeColor
protected java.awt.Color m_globalEdgeTagColor
protected double m_globalEdgeSize
protected boolean m_bShowBoundaries
protected boolean m_bShowTaggedBoundaries
protected java.awt.Color m_globalBndColor
protected java.awt.Color m_globalBndTagColor
protected double m_globalBndSize
protected int m_dimOfElements
setDimOfElements(int)protected int m_maxDimOfElements
protected int m_numElements
setNumElements(int)protected int m_maxNumElements
setNumElements(int)
This value is adjusted automatically whenever more memory is needed.setNumElements(int),
setMaxNumElements(int)protected PiVector[] m_element
protected java.awt.Color[] m_elementColor
protected PdVector[] m_elementNormal
protected PdVector[][] m_elementTexture
protected boolean m_bShowElements
protected boolean m_bShowTaggedElements
protected boolean m_bShowElementNormals
protected boolean m_bShowElementNormalArrow
protected boolean m_bShowElementColors
protected java.awt.Color m_globalElementColor
protected java.awt.Color m_globalElementTagColor
protected java.awt.Color m_globalElementBackColor
protected java.awt.Color[] m_elementBackColor
protected boolean m_bShowElementBackColor
protected boolean m_bShowElementBackColors
protected double m_globalElementNormalLength
protected double m_globalElementNormalSize
protected java.awt.Color m_globalElementNormalColor
protected PiVector[] m_neighbour
| 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)protected PgJvxSrc(int dim)
Subclasses of PgJvxSrc are advised to use the construction PgJvxSrc(int) similar to the use of all other geometry classes, and then invoke the init() method inside their own constructor.
All this business about the init() method is due to JAX which is unable to check against the (obfuscated) class name after obfuscation.
| Method Detail |
public void init()
init in class PgGeometrypublic void setDimOfVertices(int dim)
public PdVector[] getBounds()
getBounds in class PgGeometryjv.project.PgGeometrypublic 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 getNumVectorFields()
public int getDimOfVectors(int ind)
public PdVector[] getVectors(int ind)
public java.awt.Color[] getVectorFieldColors(int ind)
public java.lang.String getVectorFieldName(int ind)
public boolean isVectorArrowVisible(int ind)
public boolean isVectorElementBased(int ind)
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 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 listprotected void setMaxNumVertices(int numVertices)
public 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 void setNumVectors(int ind,
int num,
int dimOfVectors)
public void setNumVectorFields(int num)
public void setVectorFieldName(int ind,
java.lang.String name)
public void setVectorArrowVisible(int ind,
boolean flag)
public void setVectorElementBased(int ind,
boolean flag)
public void assureVectorColors(int ind)
public 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)protected void setMaxNumPolygons(int numPolygons)
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)
protected void setDimOfElement(int ind,
int aSize)
setElement(int, PiVector).
New size must be larger than 3, other values lead to a warning message.
ind - Index of element to change size.aSize - New number of vertices of element, must be larger than 3.setDimOfElements(int),
setElement(int, PiVector)protected void setMaxNumElements(int numElements)
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 getGlobalVectorColor(int ind)
public double getGlobalVectorLength(int ind)
public double getGlobalVectorSize(int ind)
public boolean setGlobalVectorColor(int ind,
java.awt.Color color)
public boolean setGlobalVectorLength(int ind,
double length)
public boolean setGlobalVectorSize(int ind,
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 PgGeometry
public void setVectors(int ind,
PdVector[] list)
ind - index of vector fieldlist - array with new vectors
public void setVectorColors(int ind,
java.awt.Color[] list)
ind - index of vector fieldlist - array with new vector colorspublic 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.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||