Version: 6.3.1
Public Member Functions | Private Attributes

GLViewer_Group Class Reference

#include <GLViewer_Group.h>

Public Member Functions

 GLViewer_Group ()
 ~GLViewer_Group ()
bool isEmpty ()
int count ()
 Returns number ob objects.
int contains (GLViewer_Object *)
 Returns index of position, else -1.
int addObject (GLViewer_Object *)
int removeObject (GLViewer_Object *)
OGList getObjects () const
void dragingObjects (float x, float y, bool once=false)
 Dragging operation.
void updateZoom (GLViewer_Object *sender, float zoom)

Private Attributes

OGList myList
 List of objects.
int mySelObjNum
 This number needs for synchranization group with viewport drag methods.

Detailed Description

Class GLViewer_Group Group of GLViewer_Objects for synchronized moving. If you move one or more objects from group, than all objects from group is moved If group is empty, it must be deleted


Constructor & Destructor Documentation

GLViewer_Group::GLViewer_Group ( )

constructor

References mySelObjNum.

GLViewer_Group::~GLViewer_Group ( )

destructor


Member Function Documentation

bool GLViewer_Group::isEmpty ( )

detection of empty group

References myList.

int GLViewer_Group::count ( )
Returns:
number of elements

References myList.

int GLViewer_Group::contains ( GLViewer_Object theObject)
Returns:
the position of object if group contains it, else -1

References myList.

int GLViewer_Group::addObject ( GLViewer_Object theObject)

adding object to group

References contains(), count(), myList, and GLViewer_Object.setGroup().

int GLViewer_Group::removeObject ( GLViewer_Object theObject)

removing object from group

References count(), isEmpty(), myList, and ~GLViewer_Group().

OGList GLViewer_Group.getObjects ( ) const
void GLViewer_Group::dragingObjects ( float  x,
float  y,
bool  once = false 
)

Once = true, if this operation calls only one time for all object

Dragging operation

Parameters:
Onceis true, if this operation calls only one time for all object
x,y- dragging position

References myList, and mySelObjNum.

void GLViewer_Group::updateZoom ( GLViewer_Object sender,
float  zoom 
)
Warning:
it is for ouv

Updates zoom of object

Parameters:
sender- object to be updated
zoom- zoom coefficient

References myList, and GLViewer_Object.setZoom().


Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS