JavaView® v2.12

jv.project
Interface PvGeometryIf


public interface PvGeometryIf

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 in display.

Version:
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)
Author:
Konrad Polthier
See Also:
PgGeometryIf, PvDisplayIf, PvDisplay

Field Summary
static int DRAW_ORDER_BACK
           
static int DRAW_ORDER_FRONT
           
static int DRAW_ORDER_STANDARD
           
static int ENABLE_DEFAULT_LABEL
           
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_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 title of geometry item.
static int GEOM_KNOT_BOOK
          Identifier for a knot book geometry.
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 IS_BOUNDARY
          Deprecated. since JavaView 1.99.8, no replacement
static int IS_HIDDEN
          Internal tag to hide geometry in display.
static int IS_PICKED
          Deprecated. since JavaView 1.99.8, use jv.object.PsObject#IS_SELECTED instead.
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_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_OUTLINE
           
static int SHOW_POLYGON_COLORS
           
static int SHOW_POLYGON_END_ARROW
           
static int SHOW_POLYGON_LABELS
           
static int SHOW_POLYGON_NORMAL_ARROW
           
static int SHOW_POLYGON_NORMALS
           
static int SHOW_POLYGON_START_ARROW
           
static int SHOW_POLYGONS
           
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
           
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_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 setDrawingOrder(int anOrder)
          Set position of geometry in z-direction in display.
 boolean setElement(int index, PiVector vertices)
           
 void setElementBackColors(java.awt.Color[] color)
          Set individual backface colors of elements.
 void setElementBased(int ind, boolean basedOnElement)
          Deprecated. use setVectorElementBased(int, boolean) instead.
 boolean setElementColor(int index, java.awt.Color color)
           
 void setElementColors(java.awt.Color[] colors)
          Set individual colors of elements.
 boolean setElementNormal(int index, PdVector normal)
           
 void setElementNormals(PdVector[] normals)
          Set individual normals of elements.
 void setElements(PiVector[] elements)
           
 boolean setElementTag(int index, int aTag)
           
 boolean setElementTexture(int index, PdVector[] texCoords)
           
 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 vertex normal color.
 void setGlobalPolygonNormalLength(double aLength)
          Set global length of vertex normal vectors.
 void setGlobalPolygonNormalSize(double aSize)
          Set global thickness of vertex 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 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)
           
 boolean setPolygon(int index, PiVector vertices)
           
 boolean setPolygonColor(int index, java.awt.Color color)
           
 void setPolygonColors(java.awt.Color[] colors)
           
 boolean setPolygonNormal(int index, PdVector normal)
           
 void setPolygonNormals(PdVector[] normals)
           
 void setPolygons(PiVector[] vertices)
           
 boolean setPolygonTag(int index, int aTag)
           
 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)
           
 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.
 int setVectorField(java.lang.Object aVectorField)
          Deprecated. use setNumVectorFields(int) and setVectors(int, PdVector []) instead.
 boolean setVectorList(int ind, PdVector[] vector)
          Deprecated. use setVectors(int, PdVector []) instead.
 void setVectors(int ind, PdVector[] list)
          Copy all vectors of vector list to existing array of vectors.
 boolean setVertex(int index, PdVector vertex)
           
 boolean setVertexColor(int index, java.awt.Color color)
           
 void setVertexColors(java.awt.Color[] colors)
           
 boolean setVertexNormal(int index, PdVector normal)
           
 void setVertexNormals(PdVector[] normals)
           
 boolean setVertexTag(int index, int aTag)
           
 boolean setVertexTexture(int index, PdVector tex)
           
 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.
 boolean update(java.lang.Object event)
          Invoke update of geometry container.
 

Field Detail

GEOM_UNKNOWN

public static final int GEOM_UNKNOWN
Identifier for unknown geometry type.

GEOM_POINT_SET

public static final int GEOM_POINT_SET
Identifier for point set geometry.

GEOM_POLYGON

public static final int GEOM_POLYGON
Identifier for polygon geometry.

GEOM_POLYGON_SET

public static final int GEOM_POLYGON_SET
Identifier for polygon set geometry.

GEOM_ELEMENT_SET

public static final int GEOM_ELEMENT_SET
Identifier for an element set geometry.

GEOM_TETRA_SET

public static final int GEOM_TETRA_SET
Identifier for a volume geometry of tetrahedrons.

GEOM_BOUNDARY_POLYGON

public static final int GEOM_BOUNDARY_POLYGON
Identifier for boundary polygon.

GEOM_VECTOR_FIELD

public static final int GEOM_VECTOR_FIELD
Identifier for a vector field.

GEOM_KNOT_BOOK

public static final int GEOM_KNOT_BOOK
Identifier for a knot book geometry.

GEOM_ITEM_POINT

public static final int GEOM_ITEM_POINT
Identifier for vertex geometry item.

GEOM_ITEM_EDGE

public static final int GEOM_ITEM_EDGE
Identifier for edge geometry item.

GEOM_ITEM_POLYGON

public static final int GEOM_ITEM_POLYGON
Identifier for polygon geometry item.

GEOM_ITEM_ELEMENT

public static final int GEOM_ITEM_ELEMENT
Identifier for element geometry item.

GEOM_ITEM_TETRA

public static final int GEOM_ITEM_TETRA
Identifier for tetrahedron geometry item.

GEOM_ITEM_TITLE

public static final int GEOM_ITEM_TITLE
Identifier for title of geometry item.

USER_BIT

public 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.

IS_PICKED

public static final int IS_PICKED
Deprecated. since JavaView 1.99.8, use jv.object.PsObject#IS_SELECTED instead.


IS_SYMMETRY

public static final int IS_SYMMETRY
Deprecated. since JavaView 1.99.8, no replacement


IS_BOUNDARY

public static final int IS_BOUNDARY
Deprecated. since JavaView 1.99.8, no replacement


IS_HIDDEN

public static final int IS_HIDDEN
Internal tag to hide geometry in display. Users should prefer direct method calls listed in the @see directive.
See Also:
PgGeometry.isVisible(), PgGeometry.setVisible(boolean)

DRAW_ORDER_STANDARD

public static final int DRAW_ORDER_STANDARD

DRAW_ORDER_BACK

public static final int DRAW_ORDER_BACK

DRAW_ORDER_FRONT

public static final int DRAW_ORDER_FRONT

SHOW_VERTICES

public static final int SHOW_VERTICES

SHOW_TAGGED_VERTICES

public static final int SHOW_TAGGED_VERTICES

SHOW_EDGES

public static final int SHOW_EDGES

SHOW_TAGGED_EDGES

public static final int SHOW_TAGGED_EDGES

SHOW_POLYGONS

public static final int SHOW_POLYGONS

SHOW_TAGGED_POLYGONS

public static final int SHOW_TAGGED_POLYGONS

SHOW_ELEMENTS

public static final int SHOW_ELEMENTS

SHOW_TAGGED_ELEMENTS

public static final int SHOW_TAGGED_ELEMENTS

SHOW_BOUNDARIES

public static final int SHOW_BOUNDARIES

SHOW_TAGGED_BOUNDARIES

public static final int SHOW_TAGGED_BOUNDARIES

SHOW_VERTEX_NORMALS

public static final int SHOW_VERTEX_NORMALS

SHOW_VERTEX_NORMAL_ARROW

public static final int SHOW_VERTEX_NORMAL_ARROW

SHOW_ELEMENT_NORMALS

public static final int SHOW_ELEMENT_NORMALS

SHOW_ELEMENT_NORMAL_ARROW

public static final int SHOW_ELEMENT_NORMAL_ARROW

SHOW_POLYGON_NORMALS

public static final int SHOW_POLYGON_NORMALS

SHOW_POLYGON_NORMAL_ARROW

public static final int SHOW_POLYGON_NORMAL_ARROW

SHOW_VECTORS

public static final int SHOW_VECTORS

SHOW_VECTOR_ARROWS

public static final int SHOW_VECTOR_ARROWS

SHOW_BACKFACE

public static final int SHOW_BACKFACE

SHOW_BNDBOX

public static final int SHOW_BNDBOX

SHOW_CENTER

public static final int SHOW_CENTER

SHOW_VERTEX_TEXTURE

public static final int SHOW_VERTEX_TEXTURE

SHOW_ELEMENT_TEXTURE

public static final int SHOW_ELEMENT_TEXTURE

SHOW_TRANSPARENCY

public static final int SHOW_TRANSPARENCY

SHOW_INDICES

public static final int SHOW_INDICES

SHOW_VERTEX_LABELS

public static final int SHOW_VERTEX_LABELS

SHOW_POLYGON_LABELS

public static final int SHOW_POLYGON_LABELS

SHOW_EDGE_LABELS

public static final int SHOW_EDGE_LABELS

SHOW_ELEMENT_LABELS

public static final int SHOW_ELEMENT_LABELS

ENABLE_DEFAULT_LABEL

public static final int ENABLE_DEFAULT_LABEL

SHOW_TITLE

public static final int SHOW_TITLE

SHOW_OUTLINE

public static final int SHOW_OUTLINE

SHOW_POLYGON_START_ARROW

public static final int SHOW_POLYGON_START_ARROW

SHOW_POLYGON_END_ARROW

public static final int SHOW_POLYGON_END_ARROW

SHOW_VERTEX_COLORS

public static final int SHOW_VERTEX_COLORS

SHOW_VECTOR_COLORS

public static final int SHOW_VECTOR_COLORS

SHOW_POLYGON_COLORS

public static final int SHOW_POLYGON_COLORS

SHOW_EDGE_COLORS

public static final int SHOW_EDGE_COLORS

SHOW_ELEMENT_COLORS

public static final int SHOW_ELEMENT_COLORS

SHOW_ELEMENT_BACK_COLOR

public static final int SHOW_ELEMENT_BACK_COLOR

SHOW_ELEMENT_BACK_COLORS

public static final int SHOW_ELEMENT_BACK_COLORS
Method Detail

init

public void init()
Reset geometry container.

update

public boolean update(java.lang.Object event)
Invoke update of geometry container.

getGeometry

public PgGeometryIf getGeometry()
Get associated geometry to be displayed.

setGeometry

public void setGeometry(PgGeometryIf aGeometry)
Set associated geometry to be displayed.

setState

public 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

public 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 see PvGeometryIf#GEOM_ITEM_POINT and other items. Note, (0,0) is in the upper left corner of the screen.
Parameters:
type - Type of geometry item to set attributes.
attr - Array of attribute vectors

getDrawingOrder

public int getDrawingOrder()
Set position of geometry in z-direction in display. Possible values: BACK, STANDARD, FRONT

setDrawingOrder

public 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

public void setCenter(PdVector aVertex)
Set center of geometry different from center of gravitiy.

setGlobalVertexColor

public void setGlobalVertexColor(java.awt.Color color)
Set global vertex color to be used if no local colors are available.

setGlobalVertexTagColor

public void setGlobalVertexTagColor(java.awt.Color color)
Set global vertex color to be used if no local colors are available.

setGlobalVertexSize

public void setGlobalVertexSize(double aSize)
Set global thickness of vertex dots.

setGlobalVertexNormalColor

public void setGlobalVertexNormalColor(java.awt.Color color)
Set global vertex normal color.

setGlobalVertexNormalSize

public void setGlobalVertexNormalSize(double aSize)
Set global thickness of vertex normal vectors.

setGlobalVertexNormalLength

public void setGlobalVertexNormalLength(double aLength)
Set global length of vertex normal vectors.

setGlobalPolygonColor

public void setGlobalPolygonColor(java.awt.Color color)
Set global polygon color to be used if no local colors are available.

setGlobalPolygonTagColor

public void setGlobalPolygonTagColor(java.awt.Color color)
Set global color of tagged polygons.

setGlobalPolygonNormalColor

public void setGlobalPolygonNormalColor(java.awt.Color color)
Set global vertex normal color.

setGlobalPolygonNormalSize

public void setGlobalPolygonNormalSize(double aSize)
Set global thickness of vertex normal vectors.

setGlobalPolygonNormalLength

public void setGlobalPolygonNormalLength(double aLength)
Set global length of vertex normal vectors.

setGlobalEdgeColor

public void setGlobalEdgeColor(java.awt.Color color)
Set global edge color to be used if no local colors are available.

setGlobalEdgeTagColor

public void setGlobalEdgeTagColor(java.awt.Color color)
Set global color of tagged edges.

setGlobalEdgeSize

public void setGlobalEdgeSize(double aSize)
Set global thickness of element edges.

setGlobalElementColor

public void setGlobalElementColor(java.awt.Color color)
Set global element color to be used if no local colors are available.

setGlobalElementBackColor

public void setGlobalElementBackColor(java.awt.Color color)
Set global color of backface of elements.

setGlobalElementTagColor

public void setGlobalElementTagColor(java.awt.Color color)
Set global color of tagged elements.

setGlobalElementNormalColor

public void setGlobalElementNormalColor(java.awt.Color color)
Set global vertex normal color.

setGlobalElementNormalSize

public void setGlobalElementNormalSize(double aSize)
Set global thickness of vertex normal vectors.

setGlobalElementNormalLength

public void setGlobalElementNormalLength(double aLength)
Set global length of vertex normal vectors.

setGlobalPolygonSize

public void setGlobalPolygonSize(double aSize)
Set global thickness of polygon edges.

setGlobalBndColor

public void setGlobalBndColor(java.awt.Color color)
Set global boundary color.

setGlobalBndTagColor

public void setGlobalBndTagColor(java.awt.Color color)
Set global color of tagged boundaries.

setGlobalBndSize

public void setGlobalBndSize(double aSize)
Set global thickness of boundary edges.

setNumVertices

public void setNumVertices(int numVertices)

setVertices

public void setVertices(PdVector[] vertices)

setVertexColors

public void setVertexColors(java.awt.Color[] colors)

setVertexNormals

public void setVertexNormals(PdVector[] normals)

setVertexTextures

public void setVertexTextures(PdVector[] tex)

setVertex

public boolean setVertex(int index,
                         PdVector vertex)

setVertexColor

public boolean setVertexColor(int index,
                              java.awt.Color color)

setVertexNormal

public boolean setVertexNormal(int index,
                               PdVector normal)

setVertexTexture

public boolean setVertexTexture(int index,
                                PdVector tex)

setTexture

public void setTexture(int[] texturePix,
                       int width,
                       int height)

setVectorField

public int setVectorField(java.lang.Object aVectorField)
Deprecated. use setNumVectorFields(int) and setVectors(int, PdVector []) instead.


setNumVectorFields

public void setNumVectorFields(int num)
Set number of allocated and used vector fields.
Parameters:
num - number of vector fields

setNumVectors

public void setNumVectors(int ind,
                          int num,
                          int dimOfVectors)
Set number of vectors of a vector field with given index.
Parameters:
ind - index of vector field
num - number of vectors in that vector field
dimOfVectors - dim of vectors in that vector field

setVectors

public 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 field
list - array with new vectors

setVectorList

public boolean setVectorList(int ind,
                             PdVector[] vector)
Deprecated. use setVectors(int, PdVector []) instead.


setVectorColors

public 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 field
list - array with new vector colors

setVectorElementBased

public 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.

setElementBased

public void setElementBased(int ind,
                            boolean basedOnElement)
Deprecated. use setVectorElementBased(int, boolean) instead.


showVectorField

public void showVectorField(int ind,
                            boolean flag)
Set flag to enable drawing of vectors of a vector field.

showVectorArrows

public void showVectorArrows(int ind,
                             boolean flag)
Set flag if tip of vectors is shown as arrow.

showVectorColors

public void showVectorColors(int ind,
                             boolean flag)
Set flag to enable drawing of individual vertex colors of a vector field.

setGlobalVectorColor

public boolean setGlobalVectorColor(int ind,
                                    java.awt.Color aColor)
Set global color of vector field to be used if no local colors are available.

setGlobalVectorLength

public boolean setGlobalVectorLength(int ind,
                                     double aLength)
Set length factor of vectors when drawn in display.

setGlobalVectorSize

public boolean setGlobalVectorSize(int ind,
                                   double aSize)
Set thickness in pixels of vectors when drawn in display.

setNumPolygons

public void setNumPolygons(int numPolygons)

setPolygons

public void setPolygons(PiVector[] vertices)

setPolygonColors

public void setPolygonColors(java.awt.Color[] colors)

setPolygonNormals

public void setPolygonNormals(PdVector[] normals)

setPolygon

public boolean setPolygon(int index,
                          PiVector vertices)

setPolygonColor

public boolean setPolygonColor(int index,
                               java.awt.Color color)

setPolygonNormal

public boolean setPolygonNormal(int index,
                                PdVector normal)

setNumElements

public void setNumElements(int numElements)

setElements

public void setElements(PiVector[] elements)

setElementColors

public void setElementColors(java.awt.Color[] colors)
Set individual colors of elements.

setElementBackColors

public void setElementBackColors(java.awt.Color[] color)
Set individual backface colors of elements.

setElementNormals

public void setElementNormals(PdVector[] normals)
Set individual normals of elements.

setElementTextures

public void setElementTextures(PdVector[][] texCoords)
Set individual neighbours of elements.

setNeighbours

public void setNeighbours(PiVector[] neighbours)

setElement

public boolean setElement(int index,
                          PiVector vertices)

setElementColor

public boolean setElementColor(int index,
                               java.awt.Color color)

setElementNormal

public boolean setElementNormal(int index,
                                PdVector normal)

setElementTexture

public boolean setElementTexture(int index,
                                 PdVector[] texCoords)

setVertexTag

public boolean setVertexTag(int index,
                            int aTag)

setPolygonTag

public boolean setPolygonTag(int index,
                             int aTag)

setElementTag

public boolean setElementTag(int index,
                             int aTag)

setModelMatrix

public void setModelMatrix(PdMatrix modelMat)
Set model matrix of geometry.

setAmbientMatrix

public void setAmbientMatrix(PdMatrix ambientMat,
                             PdMatrix ambientInvMat)
Set model matrix of geometry within original ambient space.

setTransparency

public void setTransparency(double alpha)
Set transparency in [0, 1] where 0 corresponds to opaque and 1 to fully transparent.

isVisible

public boolean isVisible()
Flag whether geometry is hidden or visible in display.

setVisible

public void setVisible(boolean flag)
Set geometry to be hidden or visible in display.

getAmbientSpace

public int getAmbientSpace()
Get ambient space used in model transformations.

setAmbientSpace

public void setAmbientSpace(int mode)
Set ambient space used in model transformations.

getAmbientProjection

public int getAmbientProjection()
Get projection mode of ambient space used in model transformations.

setAmbientProjection

public void setAmbientProjection(int mode)
Set projection mode of ambient space used in model transformations.

JavaView® v2.12

The software JavaView® is copyright protected. All Rights Reserved.