vtkTriangleDecorator Class Reference
[C++/Common/Vtk/Cell/Triangle]

The purpose of this class is to add functionality to the vtkTriangle class. More...

#include <vtkTriangleDecorator.h>

Inheritance diagram for vtkTriangleDecorator:

Inheritance graph
[legend]
Collaboration diagram for vtkTriangleDecorator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vtkTypeMacro (vtkTriangleDecorator, vtkTriangle)
void PrintSelf (ostream &os, vtkIndent indent)
 Print the state of this object.
void Component (vtkTriangle *triangle)
 Specify the component vtkTriangle which to decorate.
bool doesLineIntersectCell (double p1[3], double p2[3]) const
 Given the line segment p1, p2 does it intersect this triangle cell?

Static Public Member Functions

static vtkTriangleDecoratorNew ()
 Instantiate a new object of this type.
static vtkTriangleDecoratorNew (vtkTriangle *triangle)
 Instantiate a new object of this type.

Protected Member Functions

 vtkTriangleDecorator ()
 Ctor.
 vtkTriangleDecorator (vtkTriangle *triangle)
 Ctor.
 ~vtkTriangleDecorator ()
 Dtor.

Detailed Description

The purpose of this class is to add functionality to the vtkTriangle class.

Definition at line 16 of file vtkTriangleDecorator.h.


Constructor & Destructor Documentation

vtkTriangleDecorator::vtkTriangleDecorator (  )  [protected]

Ctor.

vtkTriangleDecorator::vtkTriangleDecorator ( vtkTriangle triangle  )  [protected]

Ctor.

Parameters:
triangle The vtkTriangle which to decorate.

vtkTriangleDecorator::~vtkTriangleDecorator (  )  [protected]

Dtor.


Member Function Documentation

static vtkTriangleDecorator* vtkTriangleDecorator::New (  )  [static]

Instantiate a new object of this type.

This is the only method that objects of this type may be created.

Returns:
The new object.

Reimplemented from vtkTriangle.

static vtkTriangleDecorator* vtkTriangleDecorator::New ( vtkTriangle triangle  )  [static]

Instantiate a new object of this type.

This is the only method that objects of this type may be created.

Parameters:
triangle The vtkTriangle vell which to decorate.
Returns:
The new object.

vtkTriangleDecorator::vtkTypeMacro ( vtkTriangleDecorator  ,
vtkTriangle   
)

void vtkTriangleDecorator::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Print the state of this object.

Parameters:
os The output stream.
indent The indentation level. Used for formating output.

Reimplemented from vtkTriangle.

void vtkTriangleDecorator::Component ( vtkTriangle triangle  ) 

Specify the component vtkTriangle which to decorate.

Parameters:
triangle The argument.

bool vtkTriangleDecorator::doesLineIntersectCell ( double  p1[3],
double  p2[3] 
) const

Given the line segment p1, p2 does it intersect this triangle cell?

Parameters:
p1 Endpoint 1 of the line.
p2 Endpoint 2 of the line.
Returns:
True if the line intersects.


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