Open CASCADE Technology 6.6.0
Public Member Functions | Protected Member Functions
NIS_DrawList Class Reference

#include <NIS_DrawList.hxx>

Public Member Functions

 NIS_DrawList ()
 NIS_DrawList (const Handle_NIS_View &theView)
virtual ~NIS_DrawList ()
Standard_Integer GetListID (const Standard_Integer theType) const
void ClearListID (const Standard_Integer theType)
void ClearListID (const Handle_NIS_View &theView=NULL)
virtual void BeginPrepare (const Standard_Integer theType)
virtual void EndPrepare (const Standard_Integer theType)
virtual void Call (const Standard_Integer theType)
Standard_Boolean IsUpdated (const Standard_Integer theType) const
void SetUpdated (const Standard_Integer theType)
const NCollection_List
< Handle_NIS_InteractiveObject > & 
DynHilightedList () const
const Handle_NIS_View & GetView () const
Standard_Boolean SetDynHilighted (const Standard_Boolean isHilight, const Handle_NIS_InteractiveObject &theObj)

Protected Member Functions

void SetUpdated (const Standard_Integer, const Standard_Boolean)

Detailed Description

This macro defines that OpenGL draw lists will be allocated as array of 5 integers and any of them would not be deleted unless all interactive objects in the given drawer are removed. When the macro is undefined every draw list is created when needed and it is destroyed when there is no objects to show in this draw list. Implementation of a set of OpenGL draw lists for a given NIS_Drawer and given NIS_View. Stored in NIS_Drawer instances.


Constructor & Destructor Documentation

NIS_DrawList::NIS_DrawList ( )

Empty constructor.

NIS_DrawList::NIS_DrawList ( const Handle_NIS_View &  theView)

Constructor

virtual NIS_DrawList::~NIS_DrawList ( ) [virtual]

Destructor.


Member Function Documentation

virtual void NIS_DrawList::BeginPrepare ( const Standard_Integer  theType) [virtual]

This method is called to start recording a new list. It must be eventually followed by EndPrepare.

Parameters:
theTypeInteger value coinciding with the enumerated NIS_Drawer::DrawType.
virtual void NIS_DrawList::Call ( const Standard_Integer  theType) [virtual]

Call the previously prepared list when the screen is redrawn.

Parameters:
theTypeInteger value coinciding with the enumerated NIS_Drawer::DrawType.
void NIS_DrawList::ClearListID ( const Standard_Integer  theType)

Set myListID to 0.

Returns:
Previous value of myListID
void NIS_DrawList::ClearListID ( const Handle_NIS_View &  theView = NULL)

Set myListID to 0.

Returns:
Previous value of myListID
const NCollection_List<Handle_NIS_InteractiveObject>& NIS_DrawList::DynHilightedList ( ) const [inline]

Query if the given list should be processed by Dynamic Hilighting.

virtual void NIS_DrawList::EndPrepare ( const Standard_Integer  theType) [virtual]

This method is called to end recording a new list. It must be preceded by BeginPrepare.

Parameters:
theTypeInteger value coinciding with the enumerated NIS_Drawer::DrawType.
Standard_Integer NIS_DrawList::GetListID ( const Standard_Integer  theType) const [inline]

Query the list corresponding to the given type.

Parameters:
theTypeInteger value coinciding with the enumerated NIS_Drawer:DrawType.
const Handle_NIS_View& NIS_DrawList::GetView ( ) const [inline]

Query the View.

Standard_Boolean NIS_DrawList::IsUpdated ( const Standard_Integer  theType) const [inline]

Query if the given list should be prepared again.

Parameters:
theTypeInteger value coinciding with the enumerated NIS_Drawer::DrawType.
Standard_Boolean NIS_DrawList::SetDynHilighted ( const Standard_Boolean  isHilight,
const Handle_NIS_InteractiveObject &  theObj 
)

Update the list of Dynamically Hilighted entities.

void NIS_DrawList::SetUpdated ( const Standard_Integer  ,
const Standard_Boolean   
) [protected]
void NIS_DrawList::SetUpdated ( const Standard_Integer  theType)

Set the flag indicating that the List should be updated (rebuilt).


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines