Open CASCADE Technology
6.9.0
|
#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) |
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.
NIS_DrawList::NIS_DrawList | ( | ) |
Empty constructor.
|
virtual |
Destructor.
|
virtual |
This method is called to start recording a new list. It must be eventually followed by EndPrepare.
theType | Integer value coinciding with the enumerated NIS_Drawer::DrawType. |
|
virtual |
Call the previously prepared list when the screen is redrawn.
theType | Integer value coinciding with the enumerated NIS_Drawer::DrawType. |
void NIS_DrawList::ClearListID | ( | const Standard_Integer | theType | ) |
Set myListID to 0.
Set myListID to 0.
|
inline |
Query if the given list should be processed by Dynamic Hilighting.
|
virtual |
This method is called to end recording a new list. It must be preceded by BeginPrepare.
theType | Integer value coinciding with the enumerated NIS_Drawer::DrawType. |
|
inline |
Query the list corresponding to the given type.
theType | Integer value coinciding with the enumerated NIS_Drawer:DrawType. |
|
inline |
Query if the given list should be prepared again.
theType | Integer 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 | theType | ) |
Set the flag indicating that the List should be updated (rebuilt).
|
protected |