#include <nurbsGL.h>
Inheritance diagram for PLib::ObjectListGL:
Public Member Functions | |
ObjectListGL () | |
virtual | ~ObjectListGL () |
ObjectGL * | first () const |
ObjectGL * | last () const |
ObjectGL * | current () const |
ObjectGL *& | first () |
ObjectGL *& | last () |
ObjectGL *& | current () |
virtual void | glObject () const |
virtual void | display () const |
virtual void | displayName () const |
void | reset () |
void | setResetMode (int m) |
void | add (ObjectGL *obj) |
ObjectGL * | remove (ObjectGL *obj) |
void | activate () |
void | deactivate () |
void | select () |
void | deselect () |
void | transformTo (GLfloat x, GLfloat y, GLfloat z, GLfloat a, GLfloat b, GLfloat c, GLfloat sx, GLfloat sy, GLfloat sz, int behavior=NURBS_FLAGS_AFFECT_ALL) |
void | transformBy (GLfloat x, GLfloat y, GLfloat z, GLfloat a, GLfloat b, GLfloat c, GLfloat sx, GLfloat sy, GLfloat sz, int behavior=NURBS_FLAGS_AFFECT_ALL) |
ObjectGL * | goTo (int a) |
ObjectGL * | goToActive (int a) |
ObjectGL * | goToNext () |
ObjectGL * | goToPrevious () |
ObjectGL * | goToNextActive () |
ObjectGL * | goToPreviousActive () |
ObjectGL * | jumpToNext () |
ObjectGL * | jumpToPrevious () |
void | setJumpSize (int a) |
int | size () const |
virtual int | read (const char *filename) |
virtual int | write (const char *filename) const |
virtual int | writeRIB (const char *filename) const |
virtual int | writePOVRAY (const char *filename) const |
void | viewAllObjects () |
void | hideAllObjects () |
Protected Attributes | |
ObjectGL * | first_ |
ObjectGL * | last_ |
ObjectGL * | current_ |
int | jumpSize |
int | n |
int | resetMode |
|
The constructor. By default the reset mode is set to delete all the elements from the list ( NURBSLIST_DELETE_AT_RESET setResetMode(NURBS_KEEP_AT_RESET)
|
|
The destructor.
|
|
Activate all the objects of the list.
Reimplemented from PLib::ObjectGL. |
|
adds an element to the list Adds an element to the list.
Reimplemented in PLib::ObjectRefListGL. |
|
Deactivates all the objects of the list.
Reimplemented from PLib::ObjectGL. |
|
Deselect all the objects of the list.
Reimplemented from PLib::ObjectGL. |
|
Displays all the elements from the list.
Reimplemented from PLib::ObjectGL. Reimplemented in PLib::NurbsListGL. |
|
Displays all the elements from the list.
|
|
Calls glObject for all the elements from the list. Displays all the elements from the list
Implements PLib::ObjectGL. Reimplemented in PLib::NurbsListGL. |
|
Moves the current pointer to the n th element. Moves the current pointer to the n th element. This must be in a valid range otherwise 0 is returned.
|
|
moves the current pointer to the n th active element Moves the current pointer to the n th active element. This must be in a valid range otherwise 0 is returned.
|
|
move the current pointer to the next element Moves the current pointer to the next element. If there are no next element, it goes to the first element.
|
|
move the current pointer to the next active element Moves the current pointer to the next element. If there are no next element, it goes to the first element.
|
|
move the current pointer to the previous one Moves the current pointer to the previous element. If there are no previous element, it goes to the last element.
|
|
move the current pointer to the previous activeElement Moves the current pointer to the previous element. If there are no previous element, it goes to the last element.
|
|
Sets all object inside the list to hide mode.
|
|
move the current pointer to the next element Moves the current pointer to the next element. If there are no next element, it goes to the first element.
|
|
move the current pointer to the next element Moves the current pointer to the next element. If there are no next element, it goes to the first element.
|
|
reads a list of objects
Reimplemented from PLib::ObjectGL. |
|
finds an element and remove it from the list Finds an element and delete it from the list. The element will not be deleted. This is up to the calling function.
Reimplemented in PLib::ObjectRefListGL. |
|
Deletes all the node of the list. Deletes all the node of the list. Depending on the reset mode, it will also delete the elements.
|
|
Select all the objects of the list.
Reimplemented from PLib::ObjectGL. |
|
Transforms the elements stored in the list. Transforms the elements stored in the list by a certain value if the elements are in a proper state. The behavior variable specifies which objects should be affected by this function.
|
|
transforms the elements stored in the list Transforms the elements stored in the list to a certain value if the elements are in a proper state. The behavior variable specifies which objects should be affected by this function.
|
|
Sets all object inside the list to view mode.
|
|
Writess a list of objects.
Reimplemented from PLib::ObjectGL. |
|
Write a list of object in the POVRAY format.
Reimplemented from PLib::ObjectGL. |
|
Write a list of object in the RIB format.
Reimplemented from PLib::ObjectGL. |