#include <NIS_Drawer.hxx>

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_InteractiveContext * | GetContext () const |
| virtual void | Assign (const Handle_NIS_Drawer &theOther) |
| virtual const Bnd_B3f & | GetBox (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_DrawList * | createDefaultList (const Handle_NIS_View &) const |
Protected Attributes | |
| NCollection_List< NIS_DrawList * > | myLists |
Abstract Drawer type
| enum NIS_Drawer::DrawType |
| NIS_Drawer::NIS_Drawer | ( | ) | [inline] |
Empty constructor.
| virtual NIS_Drawer::~NIS_Drawer | ( | ) | [virtual] |
Destructor.
| 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.
Create a3D bounding box of drawn objects.
| 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.
| 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 | theType | ) | const |
Mark all draw lists for update
NCollection_List<NIS_DrawList*> NIS_Drawer::myLists [protected] |
1.6.3