HE_Mesh2014  2.0.11
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
wblut.hemesh.HEC_Creator Class Referenceabstract
+ Inheritance diagram for wblut.hemesh.HEC_Creator:

Public Member Functions

 HEC_Creator ()
 
HEC_Creator setCenter (final double x, final double y, final double z)
 
HEC_Creator setCenter (final WB_Point c)
 
HEC_Creator setZAngle (final double a)
 
HEC_Creator setZAxis (final double x, final double y, final double z)
 
HEC_Creator setZAxis (final double p0x, final double p0y, final double p0z, final double p1x, final double p1y, final double p1z)
 
HEC_Creator setZAxis (final WB_Point p)
 
HEC_Creator setZAxis (final WB_Point p0, final WB_Point p1)
 
HEC_Creator setToModelview (final PApplet home)
 
HEC_Creator setToWorldview ()
 
final HE_Mesh create ()
 
HE_Mesh apply (final HE_Mesh mesh)
 
HE_Mesh apply (final HE_Selection sel)
 
- Public Member Functions inherited from wblut.hemesh.HE_Machine
abstract HE_Mesh apply (HE_Mesh mesh)
 
abstract HE_Mesh apply (HE_Selection selection)
 
String getStatus ()
 

Public Attributes

PApplet home
 

Protected Member Functions

abstract HE_Mesh createBase ()
 

Protected Attributes

WB_Point center
 
double zangle
 
WB_Vector zaxis
 
boolean override
 
boolean toModelview
 
WB_Vector Z
 

Additional Inherited Members

- Static Public Attributes inherited from wblut.hemesh.HE_Machine
static final HET_ProgressTracker tracker
 

Detailed Description

Abstract base class for mesh creation. Implementation should return a valid HE_Mesh.

Author
Frederik Vanhoutte (W:Blut)

Constructor & Destructor Documentation

wblut.hemesh.HEC_Creator.HEC_Creator ( )

Constructor.

Member Function Documentation

HE_Mesh wblut.hemesh.HEC_Creator.apply ( final HE_Mesh  mesh)
HE_Mesh wblut.hemesh.HEC_Creator.apply ( final HE_Selection  sel)
final HE_Mesh wblut.hemesh.HEC_Creator.create ( )

Generate a mesh, move to center and orient along axis.

Returns
HE_Mesh
abstract HE_Mesh wblut.hemesh.HEC_Creator.createBase ( )
abstractprotected

Creates the base.

Returns
HE_Mesh
HEC_Creator wblut.hemesh.HEC_Creator.setCenter ( final double  x,
final double  y,
final double  z 
)

Set center of mesh.

Parameters
xx-coordinate of center
yy-coordinate of center
zz-coordinate of center
Returns
self
HEC_Creator wblut.hemesh.HEC_Creator.setCenter ( final WB_Point  c)

Set center of mesh.

Parameters
ccenter
Returns
self
HEC_Creator wblut.hemesh.HEC_Creator.setToModelview ( final PApplet  home)

Use the applet's modelview coordinates.

Parameters
homecalling applet, typically "this"
Returns
self
HEC_Creator wblut.hemesh.HEC_Creator.setToWorldview ( )

Use absolute coordinates.

Returns
self
HEC_Creator wblut.hemesh.HEC_Creator.setZAngle ( final double  a)

Rotation of mesh about local Z-axis.

Parameters
aangle
Returns
self
HEC_Creator wblut.hemesh.HEC_Creator.setZAxis ( final double  x,
final double  y,
final double  z 
)

Orientation of local Z-axis of mesh.

Parameters
xx-coordinate of axis vector
yy-coordinate of axis vector
zz-coordinate of axis vector
Returns
self
HEC_Creator wblut.hemesh.HEC_Creator.setZAxis ( final double  p0x,
final double  p0y,
final double  p0z,
final double  p1x,
final double  p1y,
final double  p1z 
)

Local Z-axis of mesh.

Parameters
p0xx-coordinate of first point on axis
p0yy-coordinate of first point on axis
p0zz-coordinate of first point on axis
p1xx-coordinate of second point on axis
p1yy-coordinate of second point on axis
p1zz-coordinate of second point on axis
Returns
self
HEC_Creator wblut.hemesh.HEC_Creator.setZAxis ( final WB_Point  p)

Orientation of local Z-axis of mesh.

Parameters
paxis vector
Returns
self
HEC_Creator wblut.hemesh.HEC_Creator.setZAxis ( final WB_Point  p0,
final WB_Point  p1 
)

Local Z-axis of mesh.

Parameters
p0first point on axis
p1second point on axis
Returns
self

Member Data Documentation

WB_Point wblut.hemesh.HEC_Creator.center
protected

Center.

PApplet wblut.hemesh.HEC_Creator.home

Calling applet.

boolean wblut.hemesh.HEC_Creator.override
protected

Override.

boolean wblut.hemesh.HEC_Creator.toModelview
protected

Use applet model coordinates.

WB_Vector wblut.hemesh.HEC_Creator.Z
protected

Base Z-axis.

double wblut.hemesh.HEC_Creator.zangle
protected

Rotation angle about Z-axis.

WB_Vector wblut.hemesh.HEC_Creator.zaxis
protected

Z-axis.


The documentation for this class was generated from the following file: