|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface to container geometry used in JavaView displays. Methods specified in this interface are used to transfer data from a geometry class to the display in the geometry's paint method. Each subclass of jv.project.PgGeometry should derive or implement a method paint(PvGeometryIf dc) in which methods of this interface are called to transfer data to container geometry in display.
PgGeometryIf,
PvDisplayIf,
PvDisplay| Field Summary | |
static int |
DRAW_ORDER_BACK
Draw geometry in a back layer of a display, for example, to draw in the background. |
static int |
DRAW_ORDER_FRONT
Draw geometry in a front layer of a display, for example, to enforce its drawing. |
static int |
DRAW_ORDER_STANDARD
Draw geometry as part of a scene where different geometries may obscure each other. |
static int |
ENABLE_DEFAULT_LABEL
|
static int |
ENABLE_NEIGHBOUR
In rare situations usage of neighbour information may be switched off. |
static int |
GEOM_BOUNDARY_POLYGON
Identifier for boundary polygon. |
static int |
GEOM_ELEMENT_SET
Identifier for an element set geometry. |
static int |
GEOM_ITEM_EDGE
Identifier for edge geometry item. |
static int |
GEOM_ITEM_ELEMENT
Identifier for element geometry item. |
static int |
GEOM_ITEM_NAME
Identifier for individual name of geometry item. |
static int |
GEOM_ITEM_POINT
Identifier for vertex geometry item. |
static int |
GEOM_ITEM_POLYGON
Identifier for polygon geometry item. |
static int |
GEOM_ITEM_TETRA
Identifier for tetrahedron geometry item. |
static int |
GEOM_ITEM_TITLE
Identifier for general grouping title of geometry item. |
static int |
GEOM_POINT_SET
Identifier for point set geometry. |
static int |
GEOM_POLYGON
Identifier for polygon geometry. |
static int |
GEOM_POLYGON_SET
Identifier for polygon set geometry. |
static int |
GEOM_TETRA_SET
Identifier for a volume geometry of tetrahedrons. |
static int |
GEOM_UNKNOWN
Identifier for unknown geometry type. |
static int |
GEOM_VECTOR_FIELD
Identifier for a vector field. |
static int |
IGNORE_DEPTHCUE
Ignore using depthcue rendering on this geometry. |
static int |
IGNORE_LIGHTING
|
static int |
INDUCE_ELEMENT_FROM_VERTEX_COLORS
|
static int |
IS_BOUNDARY
Internal tag to identify a geometry or individual geometry items as being part of the boundary. |
static int |
IS_CREASE
Internal tag to identify a vertex as part of a crease edge. |
static int |
IS_HIDDEN
Internal tag to hide geometry in display. |
static int |
IS_PICKED
Internal tag to identify a geometry or individual geometry items as being currently picked. |
static int |
IS_SYMMETRY
Deprecated. since JavaView 1.99.8, no replacement |
static int |
SHOW_BACKFACE
|
static int |
SHOW_BNDBOX
|
static int |
SHOW_BOUNDARIES
|
static int |
SHOW_CENTER
|
static int |
SHOW_EDGE_COLOR_FROM_ELEMENTS
|
static int |
SHOW_EDGE_COLORS
|
static int |
SHOW_EDGE_LABELS
|
static int |
SHOW_EDGES
|
static int |
SHOW_ELEMENT_BACK_COLOR
|
static int |
SHOW_ELEMENT_BACK_COLORS
|
static int |
SHOW_ELEMENT_COLORS
|
static int |
SHOW_ELEMENT_LABELS
|
static int |
SHOW_ELEMENT_NORMAL_ARROW
|
static int |
SHOW_ELEMENT_NORMALS
|
static int |
SHOW_ELEMENT_TEXTURE
|
static int |
SHOW_ELEMENTS
|
static int |
SHOW_INDICES
|
static int |
SHOW_NAME
Enables showing of the name of a geometry. |
static int |
SHOW_OUTLINE
Deprecated. use SHOW_SILHOUETTE |
static int |
SHOW_POLYGON_COLORS
|
static int |
SHOW_POLYGON_END_ARROW
|
static int |
SHOW_POLYGON_LABELS
|
static int |
SHOW_POLYGON_NORMAL_ARROW
Enables drawing of polygon normals. |
static int |
SHOW_POLYGON_NORMALS
Enables drawing of polygon normals. |
static int |
SHOW_POLYGON_SIZES
|
static int |
SHOW_POLYGON_START_ARROW
|
static int |
SHOW_POLYGONS
|
static int |
SHOW_SILHOUETTE
Draw a thickened line along the silhouette of a surface. |
static int |
SHOW_SMOOTH_ELEMENT_COLORS
|
static int |
SHOW_SMOOTH_LIGHTING
|
static int |
SHOW_SMOOTH_SHADING
|
static int |
SHOW_TAGGED_BOUNDARIES
|
static int |
SHOW_TAGGED_EDGES
|
static int |
SHOW_TAGGED_ELEMENTS
|
static int |
SHOW_TAGGED_POLYGONS
|
static int |
SHOW_TAGGED_VERTICES
|
static int |
SHOW_TITLE
Enables showing of the grouping title of a geometry. |
static int |
SHOW_TRANSPARENCY
|
static int |
SHOW_VECTOR_ARROWS
|
static int |
SHOW_VECTOR_COLORS
|
static int |
SHOW_VECTORS
|
static int |
SHOW_VERTEX_COLORS
|
static int |
SHOW_VERTEX_LABELS
|
static int |
SHOW_VERTEX_NORMAL_ARROW
|
static int |
SHOW_VERTEX_NORMALS
|
static int |
SHOW_VERTEX_OUTLINE
Draw a black circle around the (optionally colored) disk which is used to render of each vertex. |
static int |
SHOW_VERTEX_SIZES
Enables use of individual thickness of vertices of a geometry. |
static int |
SHOW_VERTEX_TEXTURE
|
static int |
SHOW_VERTICES
|
static int |
USER_BIT
Possible tags used by a display to mark the geometry, individual vertices or elements, see tag methods below. |
| Method Summary | |
int |
getAmbientProjection()
Get projection mode of ambient space used in model transformations. |
int |
getAmbientSpace()
Get ambient space used in model transformations. |
int |
getDrawingOrder()
Set position of geometry in z-direction in display. |
PgGeometryIf |
getGeometry()
Get associated geometry to be displayed. |
void |
init()
Reset geometry container. |
boolean |
isVisible()
Flag whether geometry is hidden or visible in display. |
void |
setAmbientMatrix(PdMatrix ambientMat,
PdMatrix ambientInvMat)
Set model matrix of geometry within original ambient space. |
void |
setAmbientProjection(int mode)
Set projection mode of ambient space used in model transformations. |
void |
setAmbientSpace(int mode)
Set ambient space used in model transformations. |
void |
setCenter(PdVector aVertex)
Set center of geometry different from center of gravitiy. |
void |
setCreaseAngle(double angle)
Set crease angle which is a threshold determining sharp crease edges. |
void |
setDimOfElements(int dim)
Set dimension of element used in geometry, i.e. the number vertices per element. |
void |
setDimOfPolygons(int dim)
Set dimension of polygons used in geometry, i.e. the number vertices per polygon. |
void |
setDimOfVertices(int dim)
Set dimension of points used in geometry, i.e. the number coordinates per point. |
void |
setDrawingOrder(int anOrder)
Set position of geometry in z-direction in display. |
void |
setElementBackColors(java.awt.Color[] color)
Set individual backface colors of elements. |
void |
setElementColors(java.awt.Color[] colors)
Set individual colors of elements. |
void |
setElementNormals(PdVector[] normals)
Set individual normals of elements. |
void |
setElements(PiVector[] elements)
|
void |
setElementTextures(PdVector[][] texCoords)
Set individual neighbours of elements. |
void |
setGeometry(PgGeometryIf aGeometry)
Set associated geometry to be displayed. |
void |
setGlobalBndColor(java.awt.Color color)
Set global boundary color. |
void |
setGlobalBndSize(double aSize)
Set global thickness of boundary edges. |
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 aSize)
Set global thickness of element edges. |
void |
setGlobalEdgeTagColor(java.awt.Color color)
Set global color of tagged edges. |
void |
setGlobalElementBackColor(java.awt.Color color)
Set global color of backface of elements. |
void |
setGlobalElementColor(java.awt.Color color)
Set global element color to be used if no local colors are available. |
void |
setGlobalElementNormalColor(java.awt.Color color)
Set global vertex normal color. |
void |
setGlobalElementNormalLength(double aLength)
Set global length of vertex normal vectors. |
void |
setGlobalElementNormalSize(double aSize)
Set global thickness of vertex normal vectors. |
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 color of polygon normals. |
void |
setGlobalPolygonNormalLength(double aLength)
Set global length of polygon normal vectors. |
void |
setGlobalPolygonNormalSize(double aSize)
Set global thickness of polygon normal vectors. |
void |
setGlobalPolygonSize(double aSize)
Set global thickness of polygon edges. |
void |
setGlobalPolygonTagColor(java.awt.Color color)
Set global color of tagged polygons. |
boolean |
setGlobalVectorColor(int ind,
java.awt.Color aColor)
Set global color of vector field to be used if no local colors are available. |
boolean |
setGlobalVectorLength(int ind,
double aLength)
Set length factor of vectors when drawn in display. |
boolean |
setGlobalVectorSize(int ind,
double aSize)
Set thickness in pixels of vectors 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. |
void |
setGlobalVertexNormalLength(double aLength)
Set global length of vertex normal vectors. |
void |
setGlobalVertexNormalSize(double aSize)
Set global thickness of vertex normal vectors. |
void |
setGlobalVertexSize(double aSize)
Set global thickness of vertex dots. |
void |
setGlobalVertexTagColor(java.awt.Color color)
Set global vertex color to be used if no local colors are available. |
boolean |
setLabelAttributes(PiVector[] attr)
Set attribute vector in pixel coordinates of label w.r.t. base point. |
void |
setLabelColors(java.awt.Color[] col)
Set colors of all label types. |
void |
setLabelFonts(java.lang.String[] name)
Set font names of all label types. |
void |
setLabelSizes(PdVector size)
Set font sizes of all label types. |
void |
setLabelStyles(PiVector style)
Set font styles of all label types. |
void |
setModelMatrix(PdMatrix modelMat)
Set model matrix of geometry. |
void |
setNeighbours(PiVector[] neighbours)
|
void |
setNumElements(int numElements)
|
void |
setNumPolygons(int numPolygons)
|
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)
|
void |
setPolygonColors(java.awt.Color[] colors)
|
void |
setPolygonNormals(PdVector[] normals)
|
void |
setPolygons(PiVector[] vertices)
|
void |
setPolygonSizes(PdVector sizes)
Set individual thickness of polygon edges. |
void |
setShininess(double shininess)
Set shininess of geometry. |
void |
setSpecularColor(java.awt.Color col)
Set specular color of geometry. |
void |
setState(int aKey,
boolean aValue)
Enable/disable the showing of parts of the geometry, e.g. set(PvGeometryIf.SHOW_VERTICES, true) enables the showing of vertices in the viewer |
void |
setTexture(int[] texturePix,
int width,
int height,
int blendingMode,
int filteringType)
|
void |
setTransparency(double alpha)
Set transparency in [0, 1] where 0 corresponds to opaque and 1 to fully transparent. |
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 |
setVectors(int ind,
PdVector[] list)
Copy all vectors of vector list to existing array of vectors. |
void |
setVertexColors(java.awt.Color[] colors)
|
void |
setVertexNormals(PdVector[] normals)
|
void |
setVertexSizes(PdVector sizes)
Set individual thickness of all vertices. |
void |
setVertexTextures(PdVector[] tex)
|
void |
setVertices(PdVector[] vertices)
|
void |
setVisible(boolean flag)
Set geometry to be hidden or visible in display. |
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 |
showVectorFields(boolean flag)
Set flag to enable drawing of all vector fields which are visible. |
boolean |
update(java.lang.Object event)
Invoke update of geometry container. |
| Field Detail |
public static final int GEOM_UNKNOWN
public static final int GEOM_POINT_SET
public static final int GEOM_POLYGON
public static final int GEOM_POLYGON_SET
public static final int GEOM_ELEMENT_SET
public static final int GEOM_TETRA_SET
public static final int GEOM_BOUNDARY_POLYGON
public static final int GEOM_VECTOR_FIELD
public static final int GEOM_ITEM_POINT
public static final int GEOM_ITEM_EDGE
public static final int GEOM_ITEM_POLYGON
public static final int GEOM_ITEM_ELEMENT
public static final int GEOM_ITEM_TETRA
public static final int GEOM_ITEM_NAME
public static final int GEOM_ITEM_TITLE
public static final int USER_BIT
public static final int IS_PICKED
public static final int IS_SYMMETRY
public static final int IS_BOUNDARY
public static final int IS_HIDDEN
isVisible().
isVisible(),
setVisible(boolean),
Constant Field Valuespublic static final int IS_CREASE
public static final int DRAW_ORDER_STANDARD
public static final int DRAW_ORDER_FRONT
public static final int DRAW_ORDER_BACK
public static final int SHOW_VERTICES
public static final int SHOW_TAGGED_VERTICES
public static final int SHOW_EDGES
public static final int SHOW_TAGGED_EDGES
public static final int SHOW_POLYGONS
public static final int SHOW_TAGGED_POLYGONS
public static final int SHOW_ELEMENTS
public static final int SHOW_TAGGED_ELEMENTS
public static final int SHOW_BOUNDARIES
public static final int SHOW_TAGGED_BOUNDARIES
public static final int SHOW_VERTEX_NORMALS
public static final int SHOW_VERTEX_NORMAL_ARROW
public static final int SHOW_ELEMENT_NORMALS
public static final int SHOW_ELEMENT_NORMAL_ARROW
public static final int SHOW_POLYGON_NORMALS
public static final int SHOW_POLYGON_NORMAL_ARROW
public static final int SHOW_VECTORS
public static final int SHOW_VECTOR_ARROWS
public static final int SHOW_BACKFACE
public static final int SHOW_BNDBOX
public static final int SHOW_CENTER
public static final int SHOW_VERTEX_TEXTURE
public static final int SHOW_ELEMENT_TEXTURE
public static final int SHOW_TRANSPARENCY
public static final int SHOW_VERTEX_SIZES
public static final int SHOW_INDICES
public static final int SHOW_VERTEX_LABELS
public static final int SHOW_POLYGON_LABELS
public static final int SHOW_EDGE_LABELS
public static final int SHOW_ELEMENT_LABELS
public static final int ENABLE_DEFAULT_LABEL
public static final int SHOW_NAME
public static final int SHOW_TITLE
public static final int SHOW_OUTLINE
public static final int SHOW_SILHOUETTE
public static final int SHOW_POLYGON_START_ARROW
public static final int SHOW_POLYGON_END_ARROW
public static final int SHOW_VERTEX_COLORS
public static final int SHOW_VECTOR_COLORS
public static final int SHOW_POLYGON_COLORS
public static final int SHOW_EDGE_COLORS
public static final int SHOW_EDGE_COLOR_FROM_ELEMENTS
public static final int SHOW_ELEMENT_COLORS
public static final int SHOW_VERTEX_OUTLINE
public static final int SHOW_SMOOTH_SHADING
public static final int SHOW_ELEMENT_BACK_COLOR
public static final int SHOW_ELEMENT_BACK_COLORS
public static final int SHOW_SMOOTH_LIGHTING
public static final int SHOW_SMOOTH_ELEMENT_COLORS
public static final int INDUCE_ELEMENT_FROM_VERTEX_COLORS
public static final int ENABLE_NEIGHBOUR
public static final int SHOW_POLYGON_SIZES
public static final int IGNORE_DEPTHCUE
public static final int IGNORE_LIGHTING
| Method Detail |
public void init()
public boolean update(java.lang.Object event)
public PgGeometryIf getGeometry()
public void setGeometry(PgGeometryIf aGeometry)
public void setState(int aKey,
boolean aValue)
public boolean setLabelAttributes(PiVector[] attr)
PvGeometryIf#GEOM_ITEM_POINT
and other items.
Note, (0,0) is in the upper left corner of the screen.
attr - Array of attribute vectorspublic void setLabelColors(java.awt.Color[] col)
col - Array of label typepublic void setLabelSizes(PdVector size)
size - Vector with font sizespublic void setLabelStyles(PiVector style)
style - Vector with font stylespublic void setLabelFonts(java.lang.String[] name)
name - Array with font namespublic int getDrawingOrder()
public void setDrawingOrder(int anOrder)
public void setCenter(PdVector aVertex)
public void setGlobalVertexColor(java.awt.Color color)
public void setGlobalVertexTagColor(java.awt.Color color)
public void setGlobalVertexSize(double aSize)
public void setGlobalVertexNormalColor(java.awt.Color color)
public void setGlobalVertexNormalSize(double aSize)
public void setGlobalVertexNormalLength(double aLength)
public void setGlobalPolygonColor(java.awt.Color color)
public void setGlobalPolygonTagColor(java.awt.Color color)
public void setGlobalPolygonSize(double aSize)
public void setGlobalPolygonNormalColor(java.awt.Color color)
public void setGlobalPolygonNormalSize(double aSize)
public void setGlobalPolygonNormalLength(double aLength)
public void setGlobalEdgeColor(java.awt.Color color)
public void setGlobalEdgeTagColor(java.awt.Color color)
public void setGlobalEdgeSize(double aSize)
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 setGlobalElementNormalSize(double aSize)
public void setGlobalElementNormalLength(double aLength)
public void setCreaseAngle(double angle)
public void setGlobalBndColor(java.awt.Color color)
public void setGlobalBndTagColor(java.awt.Color color)
public void setGlobalBndSize(double aSize)
public void setDimOfVertices(int dim)
public void setNumVertices(int numVertices)
public void setVertices(PdVector[] vertices)
public void setVertexColors(java.awt.Color[] colors)
public void setVertexNormals(PdVector[] normals)
public void setVertexSizes(PdVector sizes)
public void setVertexTextures(PdVector[] tex)
public void setTexture(int[] texturePix,
int width,
int height,
int blendingMode,
int filteringType)
public void setNumVectorFields(int num)
num - number of vector fields
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 field
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 colors
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 showVectorFields(boolean flag)
public void showVectorField(int ind,
boolean flag)
public void showVectorArrows(int ind,
boolean flag)
public void showVectorColors(int ind,
boolean flag)
public boolean setGlobalVectorColor(int ind,
java.awt.Color aColor)
public boolean setGlobalVectorLength(int ind,
double aLength)
public boolean setGlobalVectorSize(int ind,
double aSize)
public void setDimOfPolygons(int dim)
public void setNumPolygons(int numPolygons)
public void setPolygons(PiVector[] vertices)
public void setPolygonColors(java.awt.Color[] colors)
public void setPolygonNormals(PdVector[] normals)
public void setPolygonSizes(PdVector sizes)
public void setDimOfElements(int dim)
public void setNumElements(int numElements)
public void setElements(PiVector[] elements)
public void setElementColors(java.awt.Color[] colors)
public void setElementBackColors(java.awt.Color[] color)
public void setElementNormals(PdVector[] normals)
public void setElementTextures(PdVector[][] texCoords)
public void setNeighbours(PiVector[] neighbours)
public void setModelMatrix(PdMatrix modelMat)
public void setAmbientMatrix(PdMatrix ambientMat,
PdMatrix ambientInvMat)
public void setShininess(double shininess)
public void setSpecularColor(java.awt.Color col)
public void setTransparency(double alpha)
public boolean isVisible()
public void setVisible(boolean flag)
public int getAmbientSpace()
public void setAmbientSpace(int mode)
public int getAmbientProjection()
public void setAmbientProjection(int mode)
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||