Open CASCADE Technology 6.6.0
|
#include <NIS_TriangulatedDrawer.hxx>
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 |
Drawer for interactive object type NIS_Triangulated.
NIS_TriangulatedDrawer::NIS_TriangulatedDrawer | ( | const Quantity_Color | theNormal, |
const Quantity_Color | theHilight = Quantity_NOC_GRAY80 , |
||
const Quantity_Color | theDynHilight = Quantity_NOC_CYAN1 |
||
) |
Constructor.
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.
Quantity_Color NIS_TriangulatedDrawer::myColor[5] [protected] |
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.
unsigned int NIS_TriangulatedDrawer::myPolygonType [protected] |