RVC::CAD::ELEMENT::DRAW Class Reference

CAD::ELEMENT Interface class to render and/or transform CAD Elements into common types. More...

#include <rvc/cad.h>

Inheritance diagram for RVC::CAD::ELEMENT::DRAW:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DRAW ()
int DrawElement (const CAD::ELEMENT &Element, const TRANS2D_AFFINE &BtoC)
ERRVALUE DrawLines (const CAD::ELEMENT &Element, const POLYLINELIST &LineList)
ERRVALUE DrawPoints (const CAD::ELEMENT &Element, const POLYLINE &Points)
ERRVALUE DrawSubRegion (const CAD::ELEMENT &Element, const SUBREGION2D &SubRegion)
ERRVALUE DrawText (const CAD::ELEMENT &Element, const MISTRING &string, const POLYLINELIST &LineList)
virtual ~DRAW ()

Private Member Functions

virtual int v_DrawElement (const CAD::ELEMENT &Element, const TRANS2D_AFFINE &BtoC)
virtual ERRVALUE v_DrawLines (const CAD::ELEMENT &Element, const POLYLINELIST &LineList)
virtual ERRVALUE v_DrawPoints (const CAD::ELEMENT &Element, const POLYLINE &Points)
virtual ERRVALUE v_DrawSubRegion (const CAD::ELEMENT &Element, const SUBREGION2D &SubRegion)
virtual ERRVALUE v_DrawText (const CAD::ELEMENT &Element, const MISTRING &string, const POLYLINELIST &LineList)

Detailed Description

CAD::ELEMENT Interface class to render and/or transform CAD Elements into common types.

Definition at line 1031 of file cad.h.


Constructor & Destructor Documentation

RVC::CAD::ELEMENT::DRAW::DRAW  )  [inline]
 

Reimplemented in RVC::CAD::DRAW.

Definition at line 1033 of file cad.h.

virtual RVC::CAD::ELEMENT::DRAW::~DRAW  )  [inline, virtual]
 

Reimplemented in RVC::CAD::DRAW.

Definition at line 1034 of file cad.h.


Member Function Documentation

int RVC::CAD::ELEMENT::DRAW::DrawElement const CAD::ELEMENT Element,
const TRANS2D_AFFINE BtoC
[inline]
 

First chance to render an element without any transformations to one of methods below.

Returns:
>0 if this method used the element and do not call methods below, ==0 if call the methods below, <0 error
Parameters:
Element  Original CAD::ELEMENT
BtoC  Block to CAD transformation, methods below will do the transform before sending the converted element

Definition at line 1038 of file cad.h.

ERRVALUE RVC::CAD::ELEMENT::DRAW::DrawLines const CAD::ELEMENT Element,
const POLYLINELIST LineList
[inline]
 

Transform CAD element to a set of one or more lines, only if the element can be represented as lines and not polygons.

Parameters:
Element  Original CAD::ELEMENT
LineList  CAD::ELEMENT transformed to lines

Definition at line 1044 of file cad.h.

ERRVALUE RVC::CAD::ELEMENT::DRAW::DrawPoints const CAD::ELEMENT Element,
const POLYLINE Points
[inline]
 

Transform CAD element to a set of one or more singular points, only if the element can be represented as singular points.

Parameters:
Element  Original CAD::ELEMENT
Points  CAD::ELEMENT transformed to a POLYLINE of points

Definition at line 1050 of file cad.h.

ERRVALUE RVC::CAD::ELEMENT::DRAW::DrawSubRegion const CAD::ELEMENT Element,
const SUBREGION2D SubRegion
[inline]
 

Transform CAD element to a SUBREGION2D, only if the element can be represented as a SUBREGION2D Multiple calls to this method will be done if one SUBREGION2D is not enough (CAD::ELEMENT::TYPE_MultiPolygon).

Parameters:
Element  Original CAD::ELEMENT
SubRegion  SubRegion to fill

Definition at line 1064 of file cad.h.

ERRVALUE RVC::CAD::ELEMENT::DRAW::DrawText const CAD::ELEMENT Element,
const MISTRING string,
const POLYLINELIST LineList
[inline]
 

Called if the CAD element is a text label element.

Parameters:
Element  Original CAD::ELEMENT
string  Text string
LineList  First line is the baseline, all others after that are leader lines

Definition at line 1056 of file cad.h.

virtual int RVC::CAD::ELEMENT::DRAW::v_DrawElement const CAD::ELEMENT Element,
const TRANS2D_AFFINE BtoC
[inline, private, virtual]
 

Definition at line 1071 of file cad.h.

virtual ERRVALUE RVC::CAD::ELEMENT::DRAW::v_DrawLines const CAD::ELEMENT Element,
const POLYLINELIST LineList
[inline, private, virtual]
 

Definition at line 1072 of file cad.h.

virtual ERRVALUE RVC::CAD::ELEMENT::DRAW::v_DrawPoints const CAD::ELEMENT Element,
const POLYLINE Points
[inline, private, virtual]
 

Definition at line 1073 of file cad.h.

virtual ERRVALUE RVC::CAD::ELEMENT::DRAW::v_DrawSubRegion const CAD::ELEMENT Element,
const SUBREGION2D SubRegion
[inline, private, virtual]
 

Definition at line 1075 of file cad.h.

virtual ERRVALUE RVC::CAD::ELEMENT::DRAW::v_DrawText const CAD::ELEMENT Element,
const MISTRING string,
const POLYLINELIST LineList
[inline, private, virtual]
 

Definition at line 1074 of file cad.h.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:21:12 2004 for TNTsdk by  doxygen 1.3.8-20040913