JavaView® v2.00.008

jvx.geom
Class PgBezierCurve

java.lang.Object
  |
  +--jv.object.PsObject
        |
        +--jv.project.PgGeometry
              |
              +--jv.geom.PgPointSet
                    |
                    +--jv.geom.PgPolygon
                          |
                          +--jvx.geom.PgBezierCurve
All Implemented Interfaces:
java.lang.Cloneable, PgGeometryIf, PsUpdateIf, java.io.Serializable

public class PgBezierCurve
extends PgPolygon

Bezier polygon with control points.

Version:
01.04.00, 1.00 revised (kp) Moved from package jv.geom to jvx.geom.
00.00.98, 1.00 created (kp)
Author:
Konrad Polthier
See Also:
PgPolygon, Serialized Form

Field Summary
protected  boolean m_bShowControlPoints
           
protected  boolean m_bShowControlPolygon
           
protected  boolean m_bShowConvexHull
           
protected  boolean m_bShowTaggedControlPoints
           
protected  PdVector[] m_controlPoint
          Number of control points.
protected  int m_degree
           
protected  java.awt.Color m_globalControlPointColor
           
protected  java.awt.Color m_globalControlPolygonColor
           
protected  java.awt.Color m_globalTaggedControlPointColor
           
protected  int m_numControlPoints
           
 
Fields inherited from class jv.geom.PgPolygon
m_bClosed, m_bShowEdgeColors, m_bShowEdgeLabels, m_bShowEdgeNormals, m_bShowEdges, m_bShowPolygonColors, m_bShowPolygonEndArrow, m_bShowPolygonStartArrow, m_bShowTaggedEdges, m_globalPolygonColor, m_globalPolygonSize, m_globalPolygonTagColor, m_useGlobalPolygonSize
 
Fields inherited from class jv.geom.PgPointSet
m_bDefaultLabelEnabled, m_bShowIndices, m_bShowTaggedVertices, m_bShowTransparency, m_bShowVectorArrow, m_bShowVectorColors, m_bShowVectorFields, m_bShowVertexColors, m_bShowVertexLabels, m_bShowVertexNormalArrow, m_bShowVertexNormals, m_bShowVertexTexture, m_bShowVertices, m_dimOfColors, m_dimOfTextures, m_dimOfVectors, m_globalVectorColor, m_globalVectorLength, m_globalVectorSize, m_globalVertexColor, m_globalVertexNormalColor, m_globalVertexNormalLength, m_globalVertexNormalSize, m_globalVertexSize, m_globalVertexTagColor, m_maxNumVertices, m_numVectorFields, m_numVertices, m_texture, m_transparency, m_vectorField, m_vertex, m_vertexColor, m_vertexNormal, m_vertexTexture
 
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
 
Fields inherited from interface jv.project.PgGeometryIf
AMBIENT_H3_HYPERBOLIC, AMBIENT_PROJECTIONS, AMBIENT_R3_EUCLIDEAN, AMBIENT_R4_EUCLIDEAN, AMBIENT_S3_SPHERE, AMBIENT_SPACES, INSPECTOR_CONTROL, INSPECTOR_CONTROL_EXT, INSPECTOR_MATERIAL, INSPECTOR_MATERIAL_EXT, LABEL_BASE, LABEL_CENTER, LABEL_HEAD, LABEL_MIDDLE, LABEL_TAIL, LABEL_TOP, METHOD_EXT, PROJ_KLEIN_BALL, PROJ_PARALLEL, PROJ_POINCARE_BALL, PROJ_STEREOGRAPHIC, PROJ_UPPER_HALFSPACE
 
Constructor Summary
PgBezierCurve(int aVertexDim)
           
 
Method Summary
 void addControlPoint(PdVector aPoint)
           
protected  void computeVertices()
           
 void copy(PgGeometry aGeom)
          Copy instance variables by duplication, not by copying a reference.
 void eval(PdVector v, double t)
           
protected  PdVector[] getControlPoint()
           
protected  int getDegree()
           
 int getNumControlPoints()
           
 void init()
          Initialize and reset instance variables after call to super.init().
 void setControlPoint(int anIndex, PdVector aPoint)
           
protected  void setDegree(int aDegree)
           
 void setNumControlPoints(int aNum)
          Set number of control points.
 void setNumVertices(int aNum)
          Allocate given number of vertices, and allocate normals, colors etc. if they already exist.
 
Methods inherited from class jv.geom.PgPolygon
blend, checkTriangleCut, clone, computeCircle, computeEight, getGlobalPolygonColor, getGlobalPolygonSize, getGlobalPolygonTagColor, getJvx, getLength, getPolygon, intersectionWithLine, isClosed, isShowingEdgeColors, isShowingEdgeLabels, isShowingEdgeNormals, isShowingEdges, isShowingPolygonColors, isShowingPolygonEndArrow, isShowingPolygonStartArrow, makeNormals, paint, setClosed, setGlobalPolygonColor, setGlobalPolygonSize, setGlobalPolygonTagColor, setJvx, showEdgeColors, showEdgeLabels, showEdgeNormals, showEdges, showPolygonColors, showPolygonEndArrow, showPolygonStartArrow, toString, triangulate, update, useGlobalPolygonColor, useGlobalPolygonSize
 
Methods inherited from class jv.geom.PgPointSet
addVectorField, addVertex, assureVertexColors, assureVertexNormals, assureVertexTextures, blend, clearTagVertex, computeCylinder, computeDisk, computePlane, computeRotation, computeSnail, computeSphere, computeTorus, flipOrientation, getBounds, getCenterOfBndBox, getCenterOfGravity, getDimOfColors, getDimOfTextures, getDimOfVectors, getGlobalVectorColor, getGlobalVectorLength, getGlobalVectorSize, getGlobalVertexColor, getGlobalVertexNormalColor, getGlobalVertexNormalLength, getGlobalVertexNormalSize, getGlobalVertexSize, getGlobalVertexTagColor, getIndexOfVectorField, getMaxNumVertices, getNumVectorFields, getNumVertices, getTexture, getTextureImage, getTextureImageName, getVectorField, getVectorField, getVectorField, getVertex, getVertexColor, getVertexColors, getVertexNormal, getVertexNormals, getVertexTextures, getVertices, hasTagVertex, hasVertex, hasVertex, hasVertexColors, hasVertexNormals, hasVertexTextures, isDefaultLabelEnabled, isShowingIndices, isShowingTaggedVertices, isShowingVectorArrow, isShowingVectorColors, isShowingVectorField, isShowingVertexColors, isShowingVertexLabels, isShowingVertexNormalArrow, isShowingVertexNormals, isShowingVertexTexture, isShowingVertices, makeColorFromVectorLength, makeVertexColorsFromXYZ, makeVertexColorsFromZ, makeVertexColorsFromZHue, makeVertexNormals, makeVertexTextureFromBndBox, merge, projectToSphere, reflect, removeAllVectorFields, removeMarkedVertices, removeVectorField, removeVertex, scale, scale, setCenterOfBndBox, setDefaultLabelEnabled, setDimOfColors, setDimOfTextures, setDimOfVectors, setGlobalVectorColor, setGlobalVectorLength, setGlobalVectorSize, setGlobalVertexColor, setGlobalVertexNormalColor, setGlobalVertexNormalLength, setGlobalVertexNormalSize, setGlobalVertexSize, setGlobalVertexTagColor, setMaxNumVertices, setTagVertex, setTexture, setTextureImage, setTextureImageName, setTransparency, setVertex, setVertex, setVertex, setVertex, setVertexColor, setVertexColors, setVertexNormal, setVertexNormals, setVertexTextures, setVertices, showIndices, showTaggedVertices, showVectorArrow, showVectorColors, showVectorField, showVertexColors, showVertexLabels, showVertexNormalArrow, showVertexNormals, showVertexTexture, showVertices, translate
 
Methods inherited from class jv.project.PgGeometry
addDisplay, addElement, addPolygon, clearTagElement, clearTagPolygon, fillMethodMenu, getAmbientProjection, getAmbientSpace, getAuthorInfo, getAuthors, getCenter, getCenterOfElement, getControlPanel, getDiameter, getDimOfSimplex, getDimOfVertices, getDisplays, getElement, getGeometryInfo, getLabelAttribute, getMaterialPanel, getModelMatrix, getPolygon, getTitle, getVersion, getVersionType, hasDisplay, hasModelMatrix, hasTagElement, hasTagPolygon, isConfigurable, isShowingBndBox, isShowingCenter, isShowingTitle, isVisible, removeDisplay, removeElement, removePolygon, setAmbientProjection, setAmbientSpace, setAuthorInfo, setAuthors, setCenter, setDimOfSimplex, setElement, setGeometryInfo, setLabelAttribute, setLabelAttribute, setModelMatrix, setPolygon, setTagElement, setTagPolygon, setTitle, setVersion, setVersionType, setVisible, showBndBox, showCenter, showTitle
 
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

m_degree

protected int m_degree

m_numControlPoints

protected int m_numControlPoints

m_controlPoint

protected PdVector[] m_controlPoint
Number of control points. Should only be modified through 'setNumControlPoints(int)'.

m_bShowControlPoints

protected boolean m_bShowControlPoints

m_bShowTaggedControlPoints

protected boolean m_bShowTaggedControlPoints

m_bShowControlPolygon

protected boolean m_bShowControlPolygon

m_bShowConvexHull

protected boolean m_bShowConvexHull

m_globalControlPointColor

protected java.awt.Color m_globalControlPointColor

m_globalTaggedControlPointColor

protected java.awt.Color m_globalTaggedControlPointColor

m_globalControlPolygonColor

protected java.awt.Color m_globalControlPolygonColor
Constructor Detail

PgBezierCurve

public PgBezierCurve(int aVertexDim)
Method Detail

init

public void init()
Description copied from class: PgPolygon
Initialize and reset instance variables after call to super.init().
Overrides:
init in class PgPolygon

copy

public void copy(PgGeometry aGeom)
Description copied from class: PgPolygon
Copy instance variables by duplication, not by copying a reference.
Overrides:
copy in class PgPolygon

getControlPoint

protected PdVector[] getControlPoint()

getNumControlPoints

public int getNumControlPoints()

setNumControlPoints

public void setNumControlPoints(int aNum)
Set number of control points. All controlPoint allocation should be done in this method.

getDegree

protected int getDegree()

setDegree

protected void setDegree(int aDegree)

addControlPoint

public void addControlPoint(PdVector aPoint)

setControlPoint

public void setControlPoint(int anIndex,
                            PdVector aPoint)

setNumVertices

public void setNumVertices(int aNum)
Description copied from class: PgPointSet
Allocate given number of vertices, and allocate normals, colors etc. if they already exist. Internally, there may exist more vertices than requested serving as buffer and to reduce allocation times.
Overrides:
setNumVertices in class PgPointSet

computeVertices

protected void computeVertices()

eval

public void eval(PdVector v,
                 double t)

JavaView® v2.00.008

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