Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
NIS_TriangulatedDrawer Class Reference

#include <NIS_TriangulatedDrawer.hxx>

Inheritance diagram for NIS_TriangulatedDrawer:
Inheritance graph
[legend]

Public Member Functions

 NIS_TriangulatedDrawer (const Quantity_Color theNormal, const Quantity_Color theHilight=Quantity_NOC_GRAY80, const Quantity_Color theDynHilight=Quantity_NOC_CYAN1)
virtual void Assign (const Handle_NIS_Drawer &theOther)
virtual void BeforeDraw (const DrawType theType, const NIS_DrawList &theDrawList)
virtual void AfterDraw (const DrawType theType, const NIS_DrawList &theDrawList)
virtual void Draw (const Handle_NIS_InteractiveObject &, const DrawType theType, const NIS_DrawList &theDrawList)
virtual Standard_Boolean IsEqual (const Handle_NIS_Drawer &theOth) const

Protected Attributes

Standard_Boolean myPolygonAsLineLoop
Quantity_Color myColor [5]
Standard_ShortReal myLineWidth
Standard_Boolean myIsDrawPolygons
unsigned int myPolygonType

Detailed Description

Drawer for interactive object type NIS_Triangulated.


Constructor & Destructor Documentation

Constructor.


Member Function Documentation

virtual void NIS_TriangulatedDrawer::AfterDraw ( const DrawType  theType,
const NIS_DrawList theDrawList 
) [virtual]

Called after execution of Draw(), once per group of interactive objects.

Reimplemented from NIS_Drawer.

virtual void NIS_TriangulatedDrawer::Assign ( const Handle_NIS_Drawer &  theOther) [virtual]

Copy the relevant information from another instance of Drawer. raises exception if theOther has incompatible type (test IsKind).

Reimplemented from NIS_Drawer.

virtual void NIS_TriangulatedDrawer::BeforeDraw ( const DrawType  theType,
const NIS_DrawList theDrawList 
) [virtual]

Called before execution of Draw(), once per group of interactive objects.

Reimplemented from NIS_Drawer.

virtual void NIS_TriangulatedDrawer::Draw ( const Handle_NIS_InteractiveObject &  ,
const DrawType  theType,
const NIS_DrawList theDrawList 
) [virtual]

Main function: display the given interactive object in the given view.

Implements NIS_Drawer.

virtual Standard_Boolean NIS_TriangulatedDrawer::IsEqual ( const Handle_NIS_Drawer &  theOth) const [virtual]

Matching two instances, for Map interface.

Reimplemented from NIS_Drawer.


Field Documentation

If myPolygonAsLineLoop is true then draw polygons of the object in the mode GL_LINE_LOOP instead of GL_POLYGON in the case if no filling was requested. This will eliminate the bug with Intel integrated graphic cards (e.g. 945G Express) for the sake of polygon offset functionality.


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