Home

PHLV5_EDGE Class Reference
[Precise Hidden Line Removal V5]

Defines an PHLV5 edge. More...

#include <phlv5_edge.hxx>

Inherits ENTITY_PHLV5.

Collaboration diagram for PHLV5_EDGE:

Collaboration graph
[legend]

List of all members.

Public Member Functions

BODYGetBody () const
 Gets the BODY of the underlying modeling EDGE.
CURVEGetCurve ()
 Gets the CURVE of the underlying modeling EDGE.
EDGEGetEdge () const
 Gets the EDGE of the underlying modeling EDGE.
FACEGetFace () const
 Gets the FACE of the underlying modeling EDGE.
int GetNPoints () const
 Gets the number of points in the polyline list.
int GetParam (double &SParam, double &EParam) const
 Gets the start and end parameters of the underlying modeling CURVE.
PHLV5_SEGMENTGetSegment () const
 Returns the pointer to the first segment.
void GetSegmentList (ENTITY_LIST &seg_list) const
 Gets the segments in the form of an entity list.
int GetSense () const
 Gets the sense of the underlying modeling EDGE.
float * GetTabPoint () const
 Gets a pointer to the polyline points.
float GetVal (int i) const
 Gets a specific polyline point.
logical isSilhouette () const
 Returns TRUE if the PHLV5_EDGE refers to a silhouette line.
 PHLV5_EDGE (PHLV5_EDGE const &e)
 C++ copy constructor.
 PHLV5_EDGE (CURVE *Curve=0, BODY *Body=0, FACE *theFace=0, PHLV5_SEGMENT *Seg=0, float *Point=0, int n=0, int MySense=0, EDGE *Edge=0, PHLV5_OCC *occ=0, logical persistable=TRUE)
 C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
void SetBounds (double SParam, double EParam)
 Sets the start and end parameters of the curve.


Detailed Description

Defines an PHLV5 edge.


Role: The PHLV5_EDGE class acts as the primary output of the API api_phlv5_compute. Each PHLV5 edge is essentially a wrapper to an underlying ACIS EDGE. It contains a pointer to the CURVE of the EDGE, a pointer to a list of PHLV5_SEGMENTs (containing visibility information for that EDGE), and a pointer to a polyline representing the EDGE in 3D space. The modeling data with visibility start and stop parameters can be used to display the hidden line representation in an end user application or, for better performance, the polyline data can be used directly.

See also:
PHLV5_SEGMENT,BODY,CURVE

Constructor & Destructor Documentation

PHLV5_EDGE::PHLV5_EDGE ( CURVE Curve = 0,
BODY Body = 0,
FACE theFace = 0,
PHLV5_SEGMENT Seg = 0,
float *  Point = 0,
int  n = 0,
int  MySense = 0,
EDGE Edge = 0,
PHLV5_OCC occ = 0,
logical  persistable = TRUE 
)

C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.



Role: Applications should call this constructor only with the overloaded new operator, because this reserves the memory on the heap, a requirement to support roll back and history management.

Parameters:
Curve A curve.
Body Body.
theFace Face.
Seg Segment.
Point Polyline points.
n number of points.
MySense Sense.
Edge ACIS EDGE pointer
occ PHLV5_OCC pointer.

PHLV5_EDGE::PHLV5_EDGE ( PHLV5_EDGE const &  e  ) 

C++ copy constructor.



Parameters:
e PHLV5_EDGE to copy.


Member Function Documentation

BODY* PHLV5_EDGE::GetBody (  )  const [inline]

Gets the BODY of the underlying modeling EDGE.

CURVE* PHLV5_EDGE::GetCurve (  ) 

Gets the CURVE of the underlying modeling EDGE.

EDGE* PHLV5_EDGE::GetEdge (  )  const [inline]

Gets the EDGE of the underlying modeling EDGE.

FACE* PHLV5_EDGE::GetFace (  )  const [inline]

Gets the FACE of the underlying modeling EDGE.

int PHLV5_EDGE::GetNPoints (  )  const

Gets the number of points in the polyline list.

int PHLV5_EDGE::GetParam ( double &  SParam,
double &  EParam 
) const

Gets the start and end parameters of the underlying modeling CURVE.



Parameters:
SParam Start parameter.
EParam End parameter.

PHLV5_SEGMENT* PHLV5_EDGE::GetSegment (  )  const [inline]

Returns the pointer to the first segment.

void PHLV5_EDGE::GetSegmentList ( ENTITY_LIST seg_list  )  const

Gets the segments in the form of an entity list.



Parameters:
seg_list Entity list.

int PHLV5_EDGE::GetSense (  )  const

Gets the sense of the underlying modeling EDGE.

float* PHLV5_EDGE::GetTabPoint (  )  const

Gets a pointer to the polyline points.

float PHLV5_EDGE::GetVal ( int  i  )  const

Gets a specific polyline point.



Parameters:
i Single coordinate of a polyline point.

logical PHLV5_EDGE::isSilhouette (  )  const [inline]

Returns TRUE if the PHLV5_EDGE refers to a silhouette line.

void PHLV5_EDGE::SetBounds ( double  SParam,
double  EParam 
)

Sets the start and end parameters of the curve.



Parameters:
SParam Start parameter.
EParam End parameter.