NIS_Drawer Class Reference

#include <NIS_Drawer.hxx>

Inheritance diagram for NIS_Drawer:
Inheritance graph
[legend]

Public Types

enum  DrawType { Draw_Normal = 0, Draw_Transparent = 1, Draw_Hilighted = 2, Draw_DynHilighted = 3 }

Public Member Functions

 NIS_Drawer ()
virtual ~NIS_Drawer ()
NIS_InteractiveContextGetContext () const
virtual void Assign (const Handle_NIS_Drawer &theOther)
virtual const Bnd_B3fGetBox (const NIS_View *pView=0L) const
void SetUpdated (const DrawType theType) const
void SetUpdated (const DrawType theType1, const DrawType theType2) const
void SetUpdated (const DrawType theType1, const DrawType theType2, const DrawType theType3) const
void SetDynamicHilighted (const Standard_Boolean isHilighted, const Handle_NIS_InteractiveObject &theObj, const Handle_NIS_View &theView=0L)
virtual Standard_Integer HashCode (const Standard_Integer theN) const
virtual Standard_Boolean IsEqual (const Handle_NIS_Drawer &theOth) const
TColStd_MapIteratorOfPackedMapOfInteger ObjectIterator () const

Protected Member Functions

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)=0
virtual void redraw (const DrawType theType, const Handle_NIS_View &theView)
void addObject (const NIS_InteractiveObject *theObj, const Standard_Boolean isUpVws)
void removeObject (const NIS_InteractiveObject *theObj, const Standard_Boolean isUpVws)
virtual NIS_DrawListcreateDefaultList (const Handle_NIS_View &) const

Protected Attributes

NCollection_List< NIS_DrawList * > myLists

Detailed Description

Abstract Drawer type


Member Enumeration Documentation

Enumerator:
Draw_Normal 
Draw_Transparent 
Draw_Hilighted 
Draw_DynHilighted 

Constructor & Destructor Documentation

NIS_Drawer::NIS_Drawer (  )  [inline]

Empty constructor.

virtual NIS_Drawer::~NIS_Drawer (  )  [virtual]

Destructor.


Member Function Documentation

void NIS_Drawer::addObject ( const NIS_InteractiveObject theObj,
const Standard_Boolean  isUpVws 
) [protected]
virtual void NIS_Drawer::AfterDraw ( const DrawType  theType,
const NIS_DrawList theDrawList 
) [protected, virtual]

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

Reimplemented in NIS_SurfaceDrawer, and NIS_TriangulatedDrawer.

virtual void NIS_Drawer::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 in NIS_SurfaceDrawer, and NIS_TriangulatedDrawer.

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

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

Reimplemented in NIS_SurfaceDrawer, and NIS_TriangulatedDrawer.

virtual NIS_DrawList* NIS_Drawer::createDefaultList ( const Handle_NIS_View &   )  const [protected, virtual]
virtual void NIS_Drawer::Draw ( const Handle_NIS_InteractiveObject &  ,
const DrawType  theType,
const NIS_DrawList theDrawList 
) [protected, pure virtual]

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

Implemented in NIS_SurfaceDrawer, and NIS_TriangulatedDrawer.

virtual const Bnd_B3f& NIS_Drawer::GetBox ( const NIS_View pView = 0L  )  const [virtual]

Create a3D bounding box of drawn objects.

Parameters:
pView In not NULL, only objects visible in this view are taken.
NIS_InteractiveContext* NIS_Drawer::GetContext (  )  const [inline]

Query the Interactive Context.

virtual Standard_Integer NIS_Drawer::HashCode ( const Standard_Integer  theN  )  const [virtual]

Hash value, for Map interface.

Reimplemented from Standard_Transient.

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

Matching two instances, for Map interface.

Reimplemented in NIS_SurfaceDrawer, and NIS_TriangulatedDrawer.

TColStd_MapIteratorOfPackedMapOfInteger NIS_Drawer::ObjectIterator (  )  const [inline]

Obtain the iterator of IDs of associated objects.

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

Reimplemented in NIS_SurfaceDrawer.

void NIS_Drawer::removeObject ( const NIS_InteractiveObject theObj,
const Standard_Boolean  isUpVws 
) [protected]
void NIS_Drawer::SetDynamicHilighted ( const Standard_Boolean  isHilighted,
const Handle_NIS_InteractiveObject &  theObj,
const Handle_NIS_View &  theView = 0L 
)

Switch on/off the dynamic hilight of the given object in the given view.

Parameters:
isHilighted True if the object should be hilighted, False - if not hilighted
theObj Object instance that should be hilighted or unhilighted.
theView View where the status of object must be changed. If NULL, the object is hilighted/unhilighted in all views.
void NIS_Drawer::SetUpdated ( const DrawType  theType1,
const DrawType  theType2,
const DrawType  theType3 
) const
void NIS_Drawer::SetUpdated ( const DrawType  theType1,
const DrawType  theType2 
) const
void NIS_Drawer::SetUpdated ( const DrawType  theType  )  const

Mark all draw lists for update


Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Thu Mar 3 10:59:54 2011 for Open CASCADE Technology by  doxygen 1.6.3