jv.project
Interface PvGeometryIf
-
- All Known Implementing Classes:
- PvGeometry
public interface PvGeometryIfInterface 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.- See Also:
PgGeometryIf,PvDisplayIf,PvDisplay- Author:
- Konrad Polthier
- Version:
- 02.07.06, 5.20 revised (kp) Edge handling improved, including color and size.
29.02.04, 5.00 revised (kp) Methods on vectorFields removed which were deprecated before JavaView v2.21.
17.01.04, 4.00 revised (kp) Several unused methods removed which assign data for individual elements.
19.05.01, 3.20 revised (kp) Vector field handling slightly revised.
30.09.00, 3.10 revised (kp) Static variables USE_GLOBAL.. renamed to SHOW_...
26.09.00, 3.00 revised (kp) Merge of PgJvxSrc and PvGeometry.
21.09.00, 2.35 revised (kp) Methods for global backface element color added.
24.07.00, 2.30 revised (kp) Method for passing label offset added.
07.07.00, 2.21 revised (kp) Names of geometry type prepended with GEOM_.
23.06.00, 2.20 revised (kp) Flags for tagged items added.
02.04.00, 2.10 revised (kp) Everywhere PdColor replaced with Color.
09.02.00, 2.01 revised (kp) Outline flag added.
26.12.99, 2.00 revised (kp) Interface no longer extends PgGeometryIf.
02.08.98, 1.01 revised (kp) Vector field support added.
09.02.98, 1.00 created (kp)
-
-
Field Summary
Fields Modifier and Type Field and Description static intDRAW_FRAMEDraw frame geometry at fixed position on display.static intDRAW_ORDER_BACKDraw geometry in a back layer of a display, for example, to draw in the background.static intDRAW_ORDER_FRONTDraw geometry in a front layer of a display, for example, to enforce its drawing.static intDRAW_ORDER_STANDARDDraw geometry as part of a scene where different geometries may obscure each other.static intENABLE_DEFAULT_LABELstatic intENABLE_NEIGHBOURIn rare situations usage of neighbour information may be switched off.static intGEOM_BOUNDARY_POLYGONIdentifier for boundary polygon.static intGEOM_ELEMENT_SETIdentifier for an element set geometry.static intGEOM_ITEM_EDGEIdentifier for edge geometry item.static intGEOM_ITEM_ELEMENTIdentifier for element geometry item.static intGEOM_ITEM_NAMEIdentifier for individual name of geometry item.static intGEOM_ITEM_POINTIdentifier for vertex geometry item.static intGEOM_ITEM_POLYGONIdentifier for polygon geometry item.static intGEOM_ITEM_TETRAIdentifier for tetrahedron geometry item.static intGEOM_ITEM_TITLEIdentifier for general grouping title of geometry item.static intGEOM_POINT_SETIdentifier for point set geometry.static intGEOM_POLYGONIdentifier for polygon geometry.static intGEOM_POLYGON_SETIdentifier for polygon set geometry.static intGEOM_TETRA_SETIdentifier for a volume geometry of tetrahedra.static intGEOM_UNKNOWNIdentifier for unknown geometry type.static intGEOM_VECTOR_FIELDIdentifier for a vector field.static intIGNORE_DEPTHCUEIgnore using depthcue rendering on this geometry.static intIGNORE_LIGHTINGstatic intINDUCE_ELEMENT_FROM_VERTEX_COLORSdeprecated since 3.96.031, use SHOW_ELEMENT_COLOR_FROM_VERTICES instead.static intIS_BOUNDARYInternal tag to identify a geometry or individual geometry items as being part of the boundary.static intIS_CREASEInternal tag to identify a vertex as part of a crease edge.static intIS_HIDDENInternal tag to hide geometry in display.static intIS_PICKEDInternal tag to identify a geometry or individual geometry items as being currently picked.static intIS_SYMMETRYDeprecated.since JavaView 1.99.8, no replacementstatic intSHOW_BACKFACEstatic intSHOW_BNDBOXstatic intSHOW_BOUNDARIESstatic intSHOW_CENTERstatic intSHOW_EDGE_COLOR_FROM_ELEMENTSstatic intSHOW_EDGE_COLOR_FROM_VERTICESstatic intSHOW_EDGE_COLORSstatic intSHOW_EDGE_LABELSstatic intSHOW_EDGE_SIZESstatic intSHOW_EDGESstatic intSHOW_ELEMENT_BACK_COLORstatic intSHOW_ELEMENT_BACK_COLORSstatic intSHOW_ELEMENT_COLOR_FROM_VERTICESstatic intSHOW_ELEMENT_COLORSstatic intSHOW_ELEMENT_LABELSstatic intSHOW_ELEMENT_NORMAL_ARROWstatic intSHOW_ELEMENT_NORMALSstatic intSHOW_ELEMENT_TEXTUREstatic intSHOW_ELEMENTSstatic intSHOW_INDICESstatic intSHOW_NAMEEnables showing of the name of a geometry.static intSHOW_OUTLINEDeprecated.use SHOW_SILHOUETTEstatic intSHOW_POLYGON_COLORSstatic intSHOW_POLYGON_END_ARROWstatic intSHOW_POLYGON_LABELSstatic intSHOW_POLYGON_NORMAL_ARROWEnables drawing of polygon normals.static intSHOW_POLYGON_NORMALSEnables drawing of polygon normals.static intSHOW_POLYGON_SIZESstatic intSHOW_POLYGON_START_ARROWstatic intSHOW_POLYGONSstatic intSHOW_SILHOUETTEDraw a thickened line along the silhouette of a surface.static intSHOW_SMOOTH_EDGE_COLORSstatic intSHOW_SMOOTH_ELEMENT_COLORSstatic intSHOW_SMOOTH_LIGHTINGstatic intSHOW_SMOOTH_SHADINGstatic intSHOW_TAGGED_BOUNDARIESstatic intSHOW_TAGGED_EDGESstatic intSHOW_TAGGED_ELEMENTSstatic intSHOW_TAGGED_POLYGONSstatic intSHOW_TAGGED_VERTICESstatic intSHOW_TEXTURE_BACKstatic intSHOW_TEXTURE_FRONTstatic intSHOW_TITLEEnables showing of the grouping title of a geometry.static intSHOW_TRANSPARENCYstatic intSHOW_VECTOR_ARROWSstatic intSHOW_VECTOR_COLORSstatic intSHOW_VECTORSstatic intSHOW_VERTEX_COLORSstatic intSHOW_VERTEX_LABELSstatic intSHOW_VERTEX_NORMAL_ARROWstatic intSHOW_VERTEX_NORMALSstatic intSHOW_VERTEX_OUTLINEDraw a black circle around the (optionally colored) disk which is used to render of each vertex.static intSHOW_VERTEX_SIZESEnables use of individual thickness of vertices of a geometry.static intSHOW_VERTEX_TEXTUREstatic intSHOW_VERTICESstatic intUSER_BITPossible tags used by a display to mark the geometry, individual vertices or elements, see tag methods below.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intgetAmbientProjection()Get projection mode of ambient space used in model transformations.intgetAmbientSpace()Get ambient space used in model transformations.intgetDrawingOrder()Set position of geometry in z-direction in display.PgGeometryIfgetGeometry()Get associated geometry to be displayed.voidinit()Reset geometry container.booleanisVisible()Flag whether geometry is hidden or visible in display.voidsetAmbientMatrix(PdMatrix ambientMat, PdMatrix ambientInvMat)Set model matrix of geometry within original ambient space.voidsetAmbientProjection(int mode)Set projection mode of ambient space used in model transformations.voidsetAmbientSpace(int mode)Set ambient space used in model transformations.booleansetBndColor(int ind, java.awt.Color color)Set global color of individual boundary polygon unless all have same color.voidsetBndElementInd(int ind, PiVector elemInd)Set indices of surface elements along boundary.voidsetBndName(int ind, java.lang.String name)Set thickness in pixels of boundary polygon.voidsetBndNeighbourLocInd(int ind, PiVector oppLocInd)Set local indices of opposite vertices of edge in surface element.booleansetBndSize(int ind, double size)Set thickness in pixels of boundary polygon.voidsetCenter(PdVector aVertex)Set center of geometry different from center of gravity.voidsetCreaseAngle(double angle)Set crease angle which is a threshold determining sharp crease edges.voidsetDimOfElements(int dim)Set dimension of element used in geometry, i.e. the number vertices per element.voidsetDimOfPolygons(int dim)Set dimension of polygons used in geometry, i.e. the number vertices per polygon.voidsetDimOfVertices(int dim)Set dimension of points used in geometry, i.e. the number coordinates per point.voidsetDrawingOrder(int anOrder)Set position of geometry in z-direction in display.voidsetEdgeColors(java.awt.Color[] color)Set individual color of all edges.voidsetEdges(PiVector[] edge)Set list of all edges.voidsetEdgeSizes(PdVector size)Set individual thickness of all edges.voidsetElementBackColors(java.awt.Color[] color)Set individual backface colors of elements.voidsetElementColors(java.awt.Color[] colors)Set individual colors of elements.voidsetElementEdges(PiVector[] elementEdge)Set for all elements a list of indices of incident edges.voidsetElementNormals(PdVector[] normals)Set individual normals of elements.voidsetElements(PiVector[] elements)Set elements of geometry.voidsetElementTextures(PdVector[][] texCoords)Set individual texture coordinates for all vertices of all elements.voidsetGeometry(PgGeometryIf aGeometry)Set associated geometry to be displayed.voidsetGlobalBndColor(java.awt.Color color)Set global boundary color.voidsetGlobalBndSize(double aSize)Set global thickness of boundary edges.voidsetGlobalBndTagColor(java.awt.Color color)Set global color of tagged boundaries.voidsetGlobalEdgeColor(java.awt.Color color)Set global edge color to be used if no local colors are available.voidsetGlobalEdgeSize(double aSize)Set global thickness of element edges.voidsetGlobalEdgeTagColor(java.awt.Color color)Set global color of tagged edges.voidsetGlobalElementBackColor(java.awt.Color color)Set global color of backface of elements.voidsetGlobalElementColor(java.awt.Color color)Set global element color to be used if no local colors are available.voidsetGlobalElementNormalColor(java.awt.Color color)Set global vertex normal color.voidsetGlobalElementNormalLength(double aLength)Set global length of vertex normal vectors.voidsetGlobalElementNormalSize(double aSize)Set global thickness of vertex normal vectors.voidsetGlobalElementTagColor(java.awt.Color color)Set global color of tagged elements.voidsetGlobalPolygonColor(java.awt.Color color)Set global polygon color to be used if no local colors are available.voidsetGlobalPolygonNormalColor(java.awt.Color color)Set global color of polygon normals.voidsetGlobalPolygonNormalLength(double aLength)Set global length of polygon normal vectors.voidsetGlobalPolygonNormalSize(double aSize)Set global thickness of polygon normal vectors.voidsetGlobalPolygonSize(double aSize)Set global thickness of polygon edges.voidsetGlobalPolygonTagColor(java.awt.Color color)Set global color of tagged polygons.booleansetGlobalVectorColor(int ind, java.awt.Color aColor)Set global color of vector field to be used if no local colors are available.booleansetGlobalVectorLength(int ind, double aLength)Set length factor of vectors when drawn in display.booleansetGlobalVectorSize(int ind, double aSize)Set thickness in pixels of vectors when drawn in display.voidsetGlobalVertexColor(java.awt.Color color)Set global vertex color to be used if no local colors are available.voidsetGlobalVertexNormalColor(java.awt.Color color)Set global vertex normal color.voidsetGlobalVertexNormalLength(double aLength)Set global length of vertex normal vectors.voidsetGlobalVertexNormalSize(double aSize)Set global thickness of vertex normal vectors.voidsetGlobalVertexSize(double aSize)Set global thickness of vertex dots.voidsetGlobalVertexTagColor(java.awt.Color color)Set global vertex color to be used if no local colors are available.booleansetLabelAttributes(PiVector[] attr)Set attribute vector in pixel coordinates of label w.r.t. base point.voidsetLabelColors(java.awt.Color[] col)Set colors of all label types.voidsetLabelFonts(java.lang.String[] name)Set font names of all label types.voidsetLabelSizes(PdVector size)Set font sizes of all label types.voidsetLabelStyles(PiVector style)Set font styles of all label types.voidsetModelMatrix(PdMatrix modelMat)Set model matrix of geometry.voidsetNeighbours(PiVector[] neighbours)Set individual neighbours of elements.voidsetNumBndPolygons(int num)Set number of allocated and used vector fields.voidsetNumEdges(int numEdges)Set number of edges of an element set.voidsetNumElements(int numElements)Set number of elements of geometry.voidsetNumPolygons(int numPolygons)Set number of polygons of geometry.voidsetNumVectorFields(int num)Set number of allocated and used vector fields.voidsetNumVectors(int ind, int num, int dimOfVectors)Set number of vectors of a vector field with given index.voidsetNumVertices(int numVertices)Set number of used vertices.voidsetPolygonColors(java.awt.Color[] colors)Set individual colors of polygons.voidsetPolygonNormals(PdVector[] normals)Set individual normal vectors of polygons.voidsetPolygons(PiVector[] vertices)Set polygons of geometry.voidsetPolygonSizes(PdVector sizes)Set individual thickness of polygon edges.voidsetShininess(double shininess)Set shininess of geometry.voidsetSpecularColor(java.awt.Color col)Set specular color of geometry.voidsetState(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.voidsetTexture(int[] texturePix, int width, int height, int blendingMode, int filteringType)Set texture image as array of pixels and image dimensions with no multiple repetition.voidsetTexture(int[] texturePix, int width, int height, int uRepeat, int vRepeat, int periodic, int blendingMode, int filteringType, int textureSide)Set texture image as array of pixels and image dimensions with multiple repetition.voidsetTransparency(double alpha)Set transparency in [0, 1] where 0 corresponds to opaque and 1 to fully transparent.voidsetVectorColors(int ind, java.awt.Color[] list)Copy vector colors of list to existing array of vector colors.voidsetVectorElementBased(int ind, boolean flag)Set flag if vector field is element based or vertex based.voidsetVectors(int ind, PdVector[] list)Copy all vectors of vector list to existing array of vectors.voidsetVertexColors(java.awt.Color[] colors)Set array of vertex colors.voidsetVertexNormals(PdVector[] normals)Set array of vertex normal vectors.voidsetVertexSizes(PdVector sizes)Set individual thickness of all vertices.voidsetVertexTextures(PdVector[] tex)Set array of vertex texture coordinates.voidsetVertices(PdVector[] vertices)Set array of vertex coordinates.voidsetVisible(boolean flag)Set geometry to be hidden or visible in display.voidshowBnd(int ind, boolean flag)Set visibility of boundary polygon.voidshowBndMaterials(int ind, boolean flag)Set flag if this boundary polygon uses its own material properties instead of inheriting material properties of the base geometry.voidshowVectorArrows(int ind, boolean flag)Set flag if tip of vectors is shown as arrow.voidshowVectorColors(int ind, boolean flag)Set flag to enable drawing of individual vertex colors of a vector field.voidshowVectorField(int ind, boolean flag)Set flag to enable drawing of vectors of a vector field.voidshowVectorFields(boolean flag)Set flag to enable drawing of all vector fields which are visible.booleanupdate(java.lang.Object event)Invoke update of geometry container.
-
-
-
Field Detail
-
GEOM_UNKNOWN
static final int GEOM_UNKNOWN
Identifier for unknown geometry type.- See Also:
- Constant Field Values
-
GEOM_POINT_SET
static final int GEOM_POINT_SET
Identifier for point set geometry.- See Also:
- Constant Field Values
-
GEOM_POLYGON
static final int GEOM_POLYGON
Identifier for polygon geometry.- See Also:
- Constant Field Values
-
GEOM_POLYGON_SET
static final int GEOM_POLYGON_SET
Identifier for polygon set geometry.- See Also:
- Constant Field Values
-
GEOM_ELEMENT_SET
static final int GEOM_ELEMENT_SET
Identifier for an element set geometry.- See Also:
- Constant Field Values
-
GEOM_TETRA_SET
static final int GEOM_TETRA_SET
Identifier for a volume geometry of tetrahedra.- See Also:
- Constant Field Values
-
GEOM_BOUNDARY_POLYGON
static final int GEOM_BOUNDARY_POLYGON
Identifier for boundary polygon.- See Also:
- Constant Field Values
-
GEOM_VECTOR_FIELD
static final int GEOM_VECTOR_FIELD
Identifier for a vector field.- See Also:
- Constant Field Values
-
GEOM_ITEM_POINT
static final int GEOM_ITEM_POINT
Identifier for vertex geometry item.- See Also:
- Constant Field Values
-
GEOM_ITEM_EDGE
static final int GEOM_ITEM_EDGE
Identifier for edge geometry item.- See Also:
- Constant Field Values
-
GEOM_ITEM_POLYGON
static final int GEOM_ITEM_POLYGON
Identifier for polygon geometry item.- See Also:
- Constant Field Values
-
GEOM_ITEM_ELEMENT
static final int GEOM_ITEM_ELEMENT
Identifier for element geometry item.- See Also:
- Constant Field Values
-
GEOM_ITEM_TETRA
static final int GEOM_ITEM_TETRA
Identifier for tetrahedron geometry item.- See Also:
- Constant Field Values
-
GEOM_ITEM_NAME
static final int GEOM_ITEM_NAME
Identifier for individual name of geometry item.- See Also:
- Constant Field Values
-
GEOM_ITEM_TITLE
static final int GEOM_ITEM_TITLE
Identifier for general grouping title of geometry item.- See Also:
- Constant Field Values
-
USER_BIT
static final int USER_BIT
Possible tags used by a display to mark the geometry, individual vertices or elements, see tag methods below. This set of tags extends the set of tags of PsObject.- See Also:
- Constant Field Values
-
IS_PICKED
static final int IS_PICKED
Internal tag to identify a geometry or individual geometry items as being currently picked.- See Also:
- Constant Field Values
-
IS_SYMMETRY
static final int IS_SYMMETRY
Deprecated. since JavaView 1.99.8, no replacement- See Also:
- Constant Field Values
-
IS_BOUNDARY
static final int IS_BOUNDARY
Internal tag to identify a geometry or individual geometry items as being part of the boundary.- See Also:
- Constant Field Values
-
IS_HIDDEN
static final int IS_HIDDEN
Internal tag to hide geometry in display. Users should prefer direct method calls such asisVisible().- See Also:
isVisible(),setVisible(boolean), Constant Field Values
-
IS_CREASE
static final int IS_CREASE
Internal tag to identify a vertex as part of a crease edge.- Since:
- JavaView 3.03.007
- See Also:
- Constant Field Values
-
DRAW_ORDER_STANDARD
static final int DRAW_ORDER_STANDARD
Draw geometry as part of a scene where different geometries may obscure each other. Visibility is determined by a depth sorting.- See Also:
- Constant Field Values
-
DRAW_ORDER_FRONT
static final int DRAW_ORDER_FRONT
Draw geometry in a front layer of a display, for example, to enforce its drawing. Visibility of this shape against other shapes is no longer determined by a depth sorting.- See Also:
- Constant Field Values
-
DRAW_ORDER_BACK
static final int DRAW_ORDER_BACK
Draw geometry in a back layer of a display, for example, to draw in the background. Visibility of this shape against other shapes is no longer determined by a depth sorting.- See Also:
- Constant Field Values
-
DRAW_FRAME
static final int DRAW_FRAME
Draw frame geometry at fixed position on display.- See Also:
- Constant Field Values
- HACK:
- temporary for JOGL testing
-
SHOW_VERTICES
static final int SHOW_VERTICES
- See Also:
- Constant Field Values
-
SHOW_TAGGED_VERTICES
static final int SHOW_TAGGED_VERTICES
- See Also:
- Constant Field Values
-
SHOW_EDGES
static final int SHOW_EDGES
- See Also:
- Constant Field Values
-
SHOW_TAGGED_EDGES
static final int SHOW_TAGGED_EDGES
- See Also:
- Constant Field Values
-
SHOW_POLYGONS
static final int SHOW_POLYGONS
- See Also:
- Constant Field Values
-
SHOW_TAGGED_POLYGONS
static final int SHOW_TAGGED_POLYGONS
- See Also:
- Constant Field Values
-
SHOW_ELEMENTS
static final int SHOW_ELEMENTS
- See Also:
- Constant Field Values
-
SHOW_TAGGED_ELEMENTS
static final int SHOW_TAGGED_ELEMENTS
- See Also:
- Constant Field Values
-
SHOW_BOUNDARIES
static final int SHOW_BOUNDARIES
- See Also:
- Constant Field Values
-
SHOW_TAGGED_BOUNDARIES
static final int SHOW_TAGGED_BOUNDARIES
- See Also:
- Constant Field Values
-
SHOW_VERTEX_NORMALS
static final int SHOW_VERTEX_NORMALS
- See Also:
- Constant Field Values
-
SHOW_VERTEX_NORMAL_ARROW
static final int SHOW_VERTEX_NORMAL_ARROW
- See Also:
- Constant Field Values
-
SHOW_ELEMENT_NORMALS
static final int SHOW_ELEMENT_NORMALS
- See Also:
- Constant Field Values
-
SHOW_ELEMENT_NORMAL_ARROW
static final int SHOW_ELEMENT_NORMAL_ARROW
- See Also:
- Constant Field Values
-
SHOW_POLYGON_NORMALS
static final int SHOW_POLYGON_NORMALS
Enables drawing of polygon normals.- See Also:
- Constant Field Values
-
SHOW_POLYGON_NORMAL_ARROW
static final int SHOW_POLYGON_NORMAL_ARROW
Enables drawing of polygon normals.- See Also:
- Constant Field Values
-
SHOW_VECTORS
static final int SHOW_VECTORS
- See Also:
- Constant Field Values
-
SHOW_VECTOR_ARROWS
static final int SHOW_VECTOR_ARROWS
- See Also:
- Constant Field Values
-
SHOW_BACKFACE
static final int SHOW_BACKFACE
- See Also:
- Constant Field Values
-
SHOW_BNDBOX
static final int SHOW_BNDBOX
- See Also:
- Constant Field Values
-
SHOW_CENTER
static final int SHOW_CENTER
- See Also:
- Constant Field Values
-
SHOW_VERTEX_TEXTURE
static final int SHOW_VERTEX_TEXTURE
- See Also:
- Constant Field Values
-
SHOW_ELEMENT_TEXTURE
static final int SHOW_ELEMENT_TEXTURE
- See Also:
- Constant Field Values
-
SHOW_TEXTURE_FRONT
static final int SHOW_TEXTURE_FRONT
- See Also:
- Constant Field Values
-
SHOW_TEXTURE_BACK
static final int SHOW_TEXTURE_BACK
- See Also:
- Constant Field Values
-
SHOW_TRANSPARENCY
static final int SHOW_TRANSPARENCY
- See Also:
- Constant Field Values
-
SHOW_VERTEX_SIZES
static final int SHOW_VERTEX_SIZES
Enables use of individual thickness of vertices of a geometry.- Since:
- JavaView 2.43
- See Also:
- Constant Field Values
-
SHOW_INDICES
static final int SHOW_INDICES
- See Also:
- Constant Field Values
-
SHOW_VERTEX_LABELS
static final int SHOW_VERTEX_LABELS
- See Also:
- Constant Field Values
-
SHOW_POLYGON_LABELS
static final int SHOW_POLYGON_LABELS
- See Also:
- Constant Field Values
-
SHOW_EDGE_LABELS
static final int SHOW_EDGE_LABELS
- See Also:
- Constant Field Values
-
SHOW_ELEMENT_LABELS
static final int SHOW_ELEMENT_LABELS
- See Also:
- Constant Field Values
-
ENABLE_DEFAULT_LABEL
static final int ENABLE_DEFAULT_LABEL
- See Also:
- Constant Field Values
-
SHOW_NAME
static final int SHOW_NAME
Enables showing of the name of a geometry.- Since:
- JavaView 2.47
- See Also:
- Constant Field Values
-
SHOW_TITLE
static final int SHOW_TITLE
Enables showing of the grouping title of a geometry.- See Also:
- Constant Field Values
-
SHOW_SILHOUETTE
static final int SHOW_SILHOUETTE
Draw a thickened line along the silhouette of a surface.- See Also:
- Constant Field Values
-
SHOW_OUTLINE
static final int SHOW_OUTLINE
Deprecated. use SHOW_SILHOUETTE- See Also:
- Constant Field Values
-
SHOW_POLYGON_START_ARROW
static final int SHOW_POLYGON_START_ARROW
- See Also:
- Constant Field Values
-
SHOW_POLYGON_END_ARROW
static final int SHOW_POLYGON_END_ARROW
- See Also:
- Constant Field Values
-
SHOW_VERTEX_COLORS
static final int SHOW_VERTEX_COLORS
- See Also:
- Constant Field Values
-
SHOW_VECTOR_COLORS
static final int SHOW_VECTOR_COLORS
- See Also:
- Constant Field Values
-
SHOW_POLYGON_COLORS
static final int SHOW_POLYGON_COLORS
- See Also:
- Constant Field Values
-
SHOW_EDGE_COLORS
static final int SHOW_EDGE_COLORS
- See Also:
- Constant Field Values
-
SHOW_EDGE_COLOR_FROM_ELEMENTS
static final int SHOW_EDGE_COLOR_FROM_ELEMENTS
- See Also:
- Constant Field Values
-
SHOW_EDGE_COLOR_FROM_VERTICES
static final int SHOW_EDGE_COLOR_FROM_VERTICES
- See Also:
- Constant Field Values
-
SHOW_EDGE_SIZES
static final int SHOW_EDGE_SIZES
- See Also:
- Constant Field Values
-
SHOW_ELEMENT_COLORS
static final int SHOW_ELEMENT_COLORS
- See Also:
- Constant Field Values
-
SHOW_VERTEX_OUTLINE
static final int SHOW_VERTEX_OUTLINE
Draw a black circle around the (optionally colored) disk which is used to render of each vertex.- See Also:
- Constant Field Values
-
SHOW_SMOOTH_SHADING
static final int SHOW_SMOOTH_SHADING
- See Also:
- Constant Field Values
-
SHOW_ELEMENT_BACK_COLOR
static final int SHOW_ELEMENT_BACK_COLOR
- See Also:
- Constant Field Values
-
SHOW_ELEMENT_BACK_COLORS
static final int SHOW_ELEMENT_BACK_COLORS
- See Also:
- Constant Field Values
-
SHOW_SMOOTH_LIGHTING
static final int SHOW_SMOOTH_LIGHTING
- See Also:
- Constant Field Values
-
SHOW_SMOOTH_EDGE_COLORS
static final int SHOW_SMOOTH_EDGE_COLORS
- See Also:
- Constant Field Values
-
SHOW_SMOOTH_ELEMENT_COLORS
static final int SHOW_SMOOTH_ELEMENT_COLORS
- See Also:
- Constant Field Values
-
SHOW_ELEMENT_COLOR_FROM_VERTICES
static final int SHOW_ELEMENT_COLOR_FROM_VERTICES
- See Also:
- Constant Field Values
-
INDUCE_ELEMENT_FROM_VERTEX_COLORS
static final int INDUCE_ELEMENT_FROM_VERTEX_COLORS
deprecated since 3.96.031, use SHOW_ELEMENT_COLOR_FROM_VERTICES instead.- See Also:
- Constant Field Values
-
ENABLE_NEIGHBOUR
static final int ENABLE_NEIGHBOUR
In rare situations usage of neighbour information may be switched off. For example, non-conforming meshes are rendered without neighbour information.- See Also:
- Constant Field Values
-
SHOW_POLYGON_SIZES
static final int SHOW_POLYGON_SIZES
- See Also:
- Constant Field Values
-
IGNORE_DEPTHCUE
static final int IGNORE_DEPTHCUE
Ignore using depthcue rendering on this geometry.- See Also:
- Constant Field Values
-
IGNORE_LIGHTING
static final int IGNORE_LIGHTING
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
void init()
Reset geometry container.
-
update
boolean update(java.lang.Object event)
Invoke update of geometry container.
-
getGeometry
PgGeometryIf getGeometry()
Get associated geometry to be displayed.
-
setGeometry
void setGeometry(PgGeometryIf aGeometry)
Set associated geometry to be displayed.
-
setState
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.
-
setLabelAttributes
boolean setLabelAttributes(PiVector[] attr)
Set attribute vector in pixel coordinates of label w.r.t. base point. First two components are pixel coordinates. Third component is in [1..3] and indices whether head, center or tail is located at base+offset. Fourth component indicates font. For possible type seePvGeometryIf#GEOM_ITEM_POINTand other items. Note, (0,0) is in the upper left corner of the screen.- Parameters:
attr- Array of attribute vectors
-
setLabelColors
void setLabelColors(java.awt.Color[] col)
Set colors of all label types.- Parameters:
col- Array of label type
-
setLabelSizes
void setLabelSizes(PdVector size)
Set font sizes of all label types.- Parameters:
size- Vector with font sizes- Since:
- JavaView 3.52.002
- Version:
- 15.08.04, 1.00 created (kp)
-
setLabelStyles
void setLabelStyles(PiVector style)
Set font styles of all label types.- Parameters:
style- Vector with font styles- Since:
- JavaView 3.52.002
- Version:
- 15.08.04, 1.00 created (kp)
-
setLabelFonts
void setLabelFonts(java.lang.String[] name)
Set font names of all label types.- Parameters:
name- Array with font names- Since:
- JavaView 3.52.002
- Version:
- 15.08.04, 1.00 created (kp)
-
getDrawingOrder
int getDrawingOrder()
Set position of geometry in z-direction in display. Possible values: BACK, STANDARD, FRONT
-
setDrawingOrder
void setDrawingOrder(int anOrder)
Set position of geometry in z-direction in display. Possible values: BACK, STANDARD, FRONT Currently, only the set of item from geometries of type STANDARD are z-sorted.
-
setCenter
void setCenter(PdVector aVertex)
Set center of geometry different from center of gravity.
-
setGlobalVertexColor
void setGlobalVertexColor(java.awt.Color color)
Set global vertex color to be used if no local colors are available.
-
setGlobalVertexTagColor
void setGlobalVertexTagColor(java.awt.Color color)
Set global vertex color to be used if no local colors are available.
-
setGlobalVertexSize
void setGlobalVertexSize(double aSize)
Set global thickness of vertex dots.
-
setGlobalVertexNormalColor
void setGlobalVertexNormalColor(java.awt.Color color)
Set global vertex normal color.
-
setGlobalVertexNormalSize
void setGlobalVertexNormalSize(double aSize)
Set global thickness of vertex normal vectors.
-
setGlobalVertexNormalLength
void setGlobalVertexNormalLength(double aLength)
Set global length of vertex normal vectors.
-
setGlobalPolygonColor
void setGlobalPolygonColor(java.awt.Color color)
Set global polygon color to be used if no local colors are available.
-
setGlobalPolygonTagColor
void setGlobalPolygonTagColor(java.awt.Color color)
Set global color of tagged polygons.
-
setGlobalPolygonSize
void setGlobalPolygonSize(double aSize)
Set global thickness of polygon edges.
-
setGlobalPolygonNormalColor
void setGlobalPolygonNormalColor(java.awt.Color color)
Set global color of polygon normals.
-
setGlobalPolygonNormalSize
void setGlobalPolygonNormalSize(double aSize)
Set global thickness of polygon normal vectors.
-
setGlobalPolygonNormalLength
void setGlobalPolygonNormalLength(double aLength)
Set global length of polygon normal vectors.
-
setGlobalEdgeColor
void setGlobalEdgeColor(java.awt.Color color)
Set global edge color to be used if no local colors are available.
-
setGlobalEdgeTagColor
void setGlobalEdgeTagColor(java.awt.Color color)
Set global color of tagged edges.
-
setGlobalEdgeSize
void setGlobalEdgeSize(double aSize)
Set global thickness of element edges.
-
setGlobalElementColor
void setGlobalElementColor(java.awt.Color color)
Set global element color to be used if no local colors are available.
-
setGlobalElementBackColor
void setGlobalElementBackColor(java.awt.Color color)
Set global color of backface of elements.
-
setGlobalElementTagColor
void setGlobalElementTagColor(java.awt.Color color)
Set global color of tagged elements.
-
setGlobalElementNormalColor
void setGlobalElementNormalColor(java.awt.Color color)
Set global vertex normal color.
-
setGlobalElementNormalSize
void setGlobalElementNormalSize(double aSize)
Set global thickness of vertex normal vectors.
-
setGlobalElementNormalLength
void setGlobalElementNormalLength(double aLength)
Set global length of vertex normal vectors.
-
setCreaseAngle
void setCreaseAngle(double angle)
Set crease angle which is a threshold determining sharp crease edges.- Since:
- JavaView 3.03.007
-
setNumBndPolygons
void setNumBndPolygons(int num)
Set number of allocated and used vector fields.- Parameters:
num- number of vector fields- Since:
- JavaView 3.98.003
-
setBndName
void setBndName(int ind, java.lang.String name)Set thickness in pixels of boundary polygon.
-
setBndElementInd
void setBndElementInd(int ind, PiVector elemInd)Set indices of surface elements along boundary.
-
setBndNeighbourLocInd
void setBndNeighbourLocInd(int ind, PiVector oppLocInd)Set local indices of opposite vertices of edge in surface element.
-
showBnd
void showBnd(int ind, boolean flag)Set visibility of boundary polygon.
-
setGlobalBndColor
void setGlobalBndColor(java.awt.Color color)
Set global boundary color.
-
setGlobalBndTagColor
void setGlobalBndTagColor(java.awt.Color color)
Set global color of tagged boundaries.
-
setBndColor
boolean setBndColor(int ind, java.awt.Color color)Set global color of individual boundary polygon unless all have same color.
-
setGlobalBndSize
void setGlobalBndSize(double aSize)
Set global thickness of boundary edges.
-
setBndSize
boolean setBndSize(int ind, double size)Set thickness in pixels of boundary polygon.
-
showBndMaterials
void showBndMaterials(int ind, boolean flag)Set flag if this boundary polygon uses its own material properties instead of inheriting material properties of the base geometry.- Since:
- JavaView 3.98.003
-
setDimOfVertices
void setDimOfVertices(int dim)
Set dimension of points used in geometry, i.e. the number coordinates per point.- Since:
- JavaView 2.48
- Version:
- 11.12.02, 1.00 created (kp) Allow to update dimension of internal variables of display geometry.
-
setNumVertices
void setNumVertices(int numVertices)
Set number of used vertices.
-
setVertices
void setVertices(PdVector[] vertices)
Set array of vertex coordinates.
-
setVertexColors
void setVertexColors(java.awt.Color[] colors)
Set array of vertex colors.
-
setVertexNormals
void setVertexNormals(PdVector[] normals)
Set array of vertex normal vectors.
-
setVertexSizes
void setVertexSizes(PdVector sizes)
Set individual thickness of all vertices.- Since:
- JavaView 2.43
-
setVertexTextures
void setVertexTextures(PdVector[] tex)
Set array of vertex texture coordinates.
-
setTexture
void setTexture(int[] texturePix, int width, int height, int blendingMode, int filteringType)Set texture image as array of pixels and image dimensions with no multiple repetition.- Since:
- JavaView 2.43
- See Also:
setTexture(int [], int, int, int, int, int, int, int, int)
-
setTexture
void setTexture(int[] texturePix, int width, int height, int uRepeat, int vRepeat, int periodic, int blendingMode, int filteringType, int textureSide)Set texture image as array of pixels and image dimensions with multiple repetition.- Since:
- JavaView 3.96.012
- See Also:
setTexture(int [], int, int, int, int)- Version:
- 18.06.06, 2.10 revised (kp) Parameter textureSide added.
-
setNumVectorFields
void setNumVectorFields(int num)
Set number of allocated and used vector fields.- Parameters:
num- number of vector fields
-
setNumVectors
void setNumVectors(int ind, int num, int dimOfVectors)Set number of vectors of a vector field with given index.- Parameters:
ind- index of vector fieldnum- number of vectors in that vector fielddimOfVectors- dim of vectors in that vector field
-
setVectors
void setVectors(int ind, PdVector[] list)Copy all vectors of vector list to existing array of vectors. Length of argument vector list must be equal or larger than getNumVectors(). All vectors are copied. The dimension of all argument vectors must be equal to previous declaration in setNumVectors(int, int, int) of the vector field.- Parameters:
ind- index of vector fieldlist- array with new vectors
-
setVectorColors
void setVectorColors(int ind, java.awt.Color[] list)Copy vector colors of list to existing array of vector colors. Length of argument list must be equal or larger than getNumVectors(int).- Parameters:
ind- index of vector fieldlist- array with new vector colors
-
setVectorElementBased
void setVectorElementBased(int ind, boolean flag)Set flag if vector field is element based or vertex based.- Parameters:
ind- index of vector field.flag- true if element based vf, false if vertex based vf.
-
showVectorFields
void showVectorFields(boolean flag)
Set flag to enable drawing of all vector fields which are visible. Note, a vf is visible if global AND its own local visibility is switched on.- Since:
- JavaView 3.10.004
- Version:
- 29.02.04, 1.00 created (kp)
-
showVectorField
void showVectorField(int ind, boolean flag)Set flag to enable drawing of vectors of a vector field.
-
showVectorArrows
void showVectorArrows(int ind, boolean flag)Set flag if tip of vectors is shown as arrow.
-
showVectorColors
void showVectorColors(int ind, boolean flag)Set flag to enable drawing of individual vertex colors of a vector field.
-
setGlobalVectorColor
boolean setGlobalVectorColor(int ind, java.awt.Color aColor)Set global color of vector field to be used if no local colors are available.
-
setGlobalVectorLength
boolean setGlobalVectorLength(int ind, double aLength)Set length factor of vectors when drawn in display.
-
setGlobalVectorSize
boolean setGlobalVectorSize(int ind, double aSize)Set thickness in pixels of vectors when drawn in display.
-
setDimOfPolygons
void setDimOfPolygons(int dim)
Set dimension of polygons used in geometry, i.e. the number vertices per polygon. If the number is not uniform for all elements then use -1.- Since:
- JavaView 2.69
- Version:
- 26.04.03, 1.00 created (kp)
-
setNumPolygons
void setNumPolygons(int numPolygons)
Set number of polygons of geometry.
-
setPolygons
void setPolygons(PiVector[] vertices)
Set polygons of geometry.
-
setPolygonColors
void setPolygonColors(java.awt.Color[] colors)
Set individual colors of polygons.
-
setPolygonNormals
void setPolygonNormals(PdVector[] normals)
Set individual normal vectors of polygons.
-
setPolygonSizes
void setPolygonSizes(PdVector sizes)
Set individual thickness of polygon edges.- Since:
- JavaView 3.09
- Version:
- 07.02.04, 1.00 created (kp)
-
setDimOfElements
void setDimOfElements(int dim)
Set dimension of element used in geometry, i.e. the number vertices per element. If the number is not uniform for all elements then use -1.- Since:
- JavaView 2.69
- Version:
- 26.04.03, 1.00 created (kp)
-
setNumElements
void setNumElements(int numElements)
Set number of elements of geometry.
-
setElements
void setElements(PiVector[] elements)
Set elements of geometry.
-
setElementColors
void setElementColors(java.awt.Color[] colors)
Set individual colors of elements.
-
setElementBackColors
void setElementBackColors(java.awt.Color[] color)
Set individual backface colors of elements.
-
setElementNormals
void setElementNormals(PdVector[] normals)
Set individual normals of elements.
-
setElementTextures
void setElementTextures(PdVector[][] texCoords)
Set individual texture coordinates for all vertices of all elements.
-
setNeighbours
void setNeighbours(PiVector[] neighbours)
Set individual neighbours of elements.
-
setNumEdges
void setNumEdges(int numEdges)
Set number of edges of an element set.
-
setEdges
void setEdges(PiVector[] edge)
Set list of all edges.- Since:
- JavaView 3.96.031
- Version:
- 06.07.07, 1.00 created (kp)
-
setElementEdges
void setElementEdges(PiVector[] elementEdge)
Set for all elements a list of indices of incident edges.- Since:
- JavaView 3.96.031
- Version:
- 06.07.07, 1.00 created (kp)
-
setEdgeColors
void setEdgeColors(java.awt.Color[] color)
Set individual color of all edges.- Since:
- JavaView 3.96.031
- Version:
- 06.07.07, 1.00 created (kp)
-
setEdgeSizes
void setEdgeSizes(PdVector size)
Set individual thickness of all edges.- Since:
- JavaView 3.96.031
- Version:
- 06.07.07, 1.00 created (kp)
-
setModelMatrix
void setModelMatrix(PdMatrix modelMat)
Set model matrix of geometry.
-
setAmbientMatrix
void setAmbientMatrix(PdMatrix ambientMat, PdMatrix ambientInvMat)
Set model matrix of geometry within original ambient space.
-
setShininess
void setShininess(double shininess)
Set shininess of geometry.
-
setSpecularColor
void setSpecularColor(java.awt.Color col)
Set specular color of geometry.
-
setTransparency
void setTransparency(double alpha)
Set transparency in [0, 1] where 0 corresponds to opaque and 1 to fully transparent.
-
isVisible
boolean isVisible()
Flag whether geometry is hidden or visible in display.
-
setVisible
void setVisible(boolean flag)
Set geometry to be hidden or visible in display.
-
getAmbientSpace
int getAmbientSpace()
Get ambient space used in model transformations.
-
setAmbientSpace
void setAmbientSpace(int mode)
Set ambient space used in model transformations.
-
getAmbientProjection
int getAmbientProjection()
Get projection mode of ambient space used in model transformations.
-
setAmbientProjection
void setAmbientProjection(int mode)
Set projection mode of ambient space used in model transformations.
-
-
"