HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GT_Parametric Class Reference

Class to keep track for a 2D parametric interval. More...

#include <GT_Parametric.h>

Public Member Functions

 GT_Parametric (fpreal u0=0, fpreal u1=1, fpreal v0=0, fpreal v1=1)
 
 GT_Parametric (const GT_Parametric &src)
 
 ~GT_Parametric ()
 
GT_Parametricoperator= (const GT_Parametric &src)
 
GT_Parametric splitU ()
 
GT_Parametric splitV ()
 
bool containsU (fpreal u) const
 
bool containsV (fpreal v) const
 
fpreal closestU (fpreal u) const
 
fpreal closestV (fpreal v) const
 
fpreal getU0 () const
 
fpreal getU1 () const
 
fpreal getV0 () const
 
fpreal getV1 () const
 
fpreal getDU () const
 
fpreal getDV () const
 
void init (fpreal u0, fpreal u1, fpreal v0, fpreal v1)
 
void splitU (GT_Parametric &left, GT_Parametric &right) const
 
void splitV (GT_Parametric &bottom, GT_Parametric &top) const
 
bool save (UT_JSONWriter &w) const
 Save to JSON. More...
 

Detailed Description

Class to keep track for a 2D parametric interval.

Definition at line 20 of file GT_Parametric.h.

Constructor & Destructor Documentation

GT_Parametric::GT_Parametric ( fpreal  u0 = 0,
fpreal  u1 = 1,
fpreal  v0 = 0,
fpreal  v1 = 1 
)
inline

Definition at line 22 of file GT_Parametric.h.

GT_Parametric::GT_Parametric ( const GT_Parametric src)
inline

Definition at line 26 of file GT_Parametric.h.

GT_Parametric::~GT_Parametric ( )
inline

Definition at line 33 of file GT_Parametric.h.

Member Function Documentation

fpreal GT_Parametric::closestU ( fpreal  u) const
inline

Definition at line 63 of file GT_Parametric.h.

fpreal GT_Parametric::closestV ( fpreal  v) const
inline

Definition at line 65 of file GT_Parametric.h.

bool GT_Parametric::containsU ( fpreal  u) const
inline

Definition at line 58 of file GT_Parametric.h.

bool GT_Parametric::containsV ( fpreal  v) const
inline

Definition at line 60 of file GT_Parametric.h.

fpreal GT_Parametric::getDU ( ) const
inline

Definition at line 73 of file GT_Parametric.h.

fpreal GT_Parametric::getDV ( ) const
inline

Definition at line 74 of file GT_Parametric.h.

fpreal GT_Parametric::getU0 ( ) const
inline

Definition at line 68 of file GT_Parametric.h.

fpreal GT_Parametric::getU1 ( ) const
inline

Definition at line 69 of file GT_Parametric.h.

fpreal GT_Parametric::getV0 ( ) const
inline

Definition at line 70 of file GT_Parametric.h.

fpreal GT_Parametric::getV1 ( ) const
inline

Definition at line 71 of file GT_Parametric.h.

void GT_Parametric::init ( fpreal  u0,
fpreal  u1,
fpreal  v0,
fpreal  v1 
)
inline

Definition at line 76 of file GT_Parametric.h.

GT_Parametric& GT_Parametric::operator= ( const GT_Parametric src)
inline

Definition at line 35 of file GT_Parametric.h.

bool GT_Parametric::save ( UT_JSONWriter w) const

Save to JSON.

GT_Parametric GT_Parametric::splitU ( )
inline

Split this parametric rectangle in U. This will become the left, the returned value will be the right.

Definition at line 43 of file GT_Parametric.h.

void GT_Parametric::splitU ( GT_Parametric left,
GT_Parametric right 
) const
GT_Parametric GT_Parametric::splitV ( )
inline

Split this parametric rectangle in V. This will become the bottom, the returned value will be the top.

Definition at line 51 of file GT_Parametric.h.

void GT_Parametric::splitV ( GT_Parametric bottom,
GT_Parametric top 
) const

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