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

#include <NIS_SurfaceDrawer.hxx>

Inheritance diagram for NIS_SurfaceDrawer:
Inheritance graph
[legend]

Public Member Functions

 NIS_SurfaceDrawer (const Quantity_Color &theNormal, const Quantity_Color &theHilight=Quantity_NOC_GRAY65, const Quantity_Color &theDynHilight=Quantity_NOC_CYAN1)
void SetColor (const Quantity_Color &theColor)
void SetBackColor (const Quantity_Color &theColor)
void SetTransformation (const gp_Trsf &theTrsf)
const gp_TrsfGetTransformation () const
void SetPolygonOffset (const Standard_Real theOffset)
Standard_Real GetPolygonOffset () const
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 Member Functions

virtual void redraw (const DrawType theType, const Handle_NIS_View &theView)

Detailed Description

Drawer for interactive object type NIS_Surface.


Constructor & Destructor Documentation

Constructor.


Member Function Documentation

virtual void NIS_SurfaceDrawer::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_SurfaceDrawer::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_SurfaceDrawer::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_SurfaceDrawer::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.

Get the surface offset.

Returns the transformation to the drawer.

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

Matching two instances, for Map interface.

Reimplemented from NIS_Drawer.

virtual void NIS_SurfaceDrawer::redraw ( const DrawType  theType,
const Handle_NIS_View &  theView 
) [protected, virtual]

Reimplemented from NIS_Drawer.

Define the color used for the back side of rendered triangles. By default this color is the same as the 'Normal' color.

Sets the color of the drawer.

Sets the surface offset

Sets the transformation to the drawer.


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