BaryPatch Class Reference

BaryPatch class. More...

#include <BaryPatch.h>

Inheritance diagram for BaryPatch:

SelectableThing List of all members.

Public Member Functions

bool IsAPoint ()
bool IsAPatch ()
TDPointGetPoint ()
BaryPatchGetPatch ()
 BaryPatch (int ThingName, SelectableThing **Workspace, int DimU, int DimV, int DimW, int UCnx1, int UCnx2, int VCnx1, int VCnx2, int WCnx1, int WCnx2, SSMatrix *TransfoMatrice, int ***RefPointsI, TDPoint **LevelPointsTable)
 ~BaryPatch ()
void draw (ManipulatedFrame *MF)
int UUnSilentDim ()
int VUnSilentDim ()
int WUnSilentDim ()
int WhatsMyNumber ()
void UpdateNameTag ()
void drawQuad (Vec P1, Vec P2, Vec P3, Vec P4)
void SelectAll ()
void UpdateMatrixPoints ()

Public Attributes

int _DimU
int _DimV
int _DimW
int _UCnx1
int _UCnx2
int _VCnx1
int _VCnx2
int _WCnx1
int _WCnx2
SSMatrix_TransfoMatrice
int *** _RefPointsIndiceTable
Vec *** _MatrixPoints
TDPoint ** _LevelPointsTable

Detailed Description

BaryPatch class.


Constructor & Destructor Documentation

BaryPatch::BaryPatch ( int  ThingName,
SelectableThing **  Workspace,
int  DimU,
int  DimV,
int  DimW,
int  UCnx1,
int  UCnx2,
int  VCnx1,
int  VCnx2,
int  WCnx1,
int  WCnx2,
SSMatrix TransfoMatrice,
int ***  RefPointsI,
TDPoint **  LevelPointsTable 
) [inline]

Basic constructor

BaryPatch::~BaryPatch (  )  [inline]

Destructor


Member Function Documentation

void BaryPatch::draw ( ManipulatedFrame *  MF  )  [inline, virtual]

Draws perturbations and patches of a given level, going down the patch tree

Implements SelectableThing.

void BaryPatch::drawQuad ( Vec  P1,
Vec  P2,
Vec  P3,
Vec  P4 
) [inline]

Draw a quadrilateral using 4 points

BaryPatch* BaryPatch::GetPatch (  )  [inline, virtual]

Selectable thing inherited

See also:
SelectableThing

Implements SelectableThing.

TDPoint* BaryPatch::GetPoint (  )  [inline, virtual]

Selectable thing inherited

See also:
SelectableThing

Implements SelectableThing.

bool BaryPatch::IsAPatch (  )  [inline, virtual]

Selectable thing inherited

See also:
SelectableThing

Implements SelectableThing.

bool BaryPatch::IsAPoint (  )  [inline, virtual]

Selectable thing inherited

See also:
SelectableThing

Implements SelectableThing.

void BaryPatch::SelectAll (  )  [inline]

Selects all perturbation points of the level

void BaryPatch::UpdateMatrixPoints (  )  [inline]

Rebuilds _ProjectedTransfoMatrix projecting the barycentric coordinates of my points (columns of cumulated TransfoMatrices) according to level 0 reference point position and previous level perturbations we suppose this patch's parent _ProjectedTransfoMatrix is already updated we propagate the _ProjectedTransfoMatrix updating to children patches

void BaryPatch::UpdateNameTag (  )  [inline, virtual]

Selectable thing inherited, updates the name tag of the point

Implements SelectableThing.

int BaryPatch::UUnSilentDim (  )  [inline]

Returns 1 when dimension on axis U is > 1, 0 else

int BaryPatch::VUnSilentDim (  )  [inline]

Returns 1 when dimension on axis V is > 1, 0 else

int BaryPatch::WhatsMyNumber (  )  [inline]

Returns the number of the patch

int BaryPatch::WUnSilentDim (  )  [inline]

Returns 1 when dimension on axis W is > 1, 0 else


Member Data Documentation

int BaryPatch::_DimU

Dimension of the patch (how many points on the axis U)

int BaryPatch::_DimV

Dimension of the patch (how many points on the axis V)

int BaryPatch::_DimW

Dimension of the patch (how many points on the axis W)

TDPoint** BaryPatch::_LevelPointsTable

The level zero points are identified by indices in a table containing all level 0 points

Vec*** BaryPatch::_MatrixPoints

The (x,y,z) coordinates of the _RefPointsIndiceTable

int*** BaryPatch::_RefPointsIndiceTable

The level zero points are identified by indices in a table containing all level 0 points

SSMatrix* BaryPatch::_TransfoMatrice

Each point of the patch has a position which is determined by the coordinates of a cumulated TransfoMatrix column in the barycentric space related to some of the level zero points with previous level perturbations coming into account too _TransfoMatrix is the last transformation applied in the tree branch of transformation leading to this patch. This patch's points' positions in 3d space are the result of applying _TransfoMatrix to my parent's points and adding my perturbation.

int BaryPatch::_UCnx1

The connection patterns of the patch on this axis : what point does the connexion begin at?

int BaryPatch::_UCnx2

The connection patterns of the patch on this axis : what point does the connexion end at?

int BaryPatch::_VCnx1

The connection patterns of the patch on this axis : what point does the connexion begin at?

int BaryPatch::_VCnx2

The connection patterns of the patch on this axis : what point does the connexion end at?

int BaryPatch::_WCnx1

The connection patterns of the patch on this axis : what point does the connexion begin at?

int BaryPatch::_WCnx2

The connection patterns of the patch on this axis : what point does the connexion end at?


The documentation for this class was generated from the following file:
Generated on Thu Sep 28 09:43:42 2006 by  doxygen 1.4.7