| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GlGraphWidget Class Reference |
GlGraphWidget::GlGraphWidget | ( | QWidget * | parent = NULL , |
|
const char * | name = NULL | |||
) |
GlGraphWidget::~GlGraphWidget | ( | ) |
void GlGraphWidget::doSelect | ( | const int | x, | |
const int | y, | |||
const int | width, | |||
const int | height, | |||
std::vector< node > & | sNode, | |||
std::vector< edge > & | sEdge | |||
) |
select nodes and edges in a region of the screen
select all nodes and edges lying in the area of the screen of given width and height, and with its upper-left corner at (x,y)
sNode | filled by the method with the nodes found in the region | |
sEdge | filled by the method with the edges found in the region |
bool GlGraphWidget::doSelect | ( | const int | x, | |
const int | y, | |||
tlp::ElementType & | type, | |||
node & | , | |||
edge & | ||||
) |
select a node or edge at a point select either a node or edge at point (x,y)
type | tells what has been found: NODE, EDGE |
unsigned char* GlGraphWidget::getImage | ( | ) |
Take a snapshot of the Widget
bool GlGraphWidget::outputEPS | ( | int | size, | |
int | doSort, | |||
const char * | filename | |||
) |
bool GlGraphWidget::outputSVG | ( | int | size, | |
const char * | filename | |||
) |
bool GlGraphWidget::isDrawing | ( | ) |
void GlGraphWidget::stopDrawing | ( | ) |
void GlGraphWidget::waitDrawing | ( | ) |
void GlGraphWidget::addGlAugmentedDisplay | ( | tlp::GlAugmentedDisplay * | augmentedDisplay, | |
const string & | name | |||
) |
void GlGraphWidget::removeGlAugmentedDisplay | ( | tlp::GlAugmentedDisplay * | augmentedDisplay | ) |
void GlGraphWidget::removeGlAugmentedDisplay | ( | const string & | name | ) |
tlp::GlAugmentedDisplay* GlGraphWidget::findGlAugmentedDisplay | ( | const std::string & | name | ) |
bool GlGraphWidget::doSelectAugmentedDisplay | ( | const int | x, | |
const int | y, | |||
const int | width, | |||
const int | height, | |||
std::vector< std::pair< string, tlp::GlAugmentedDisplay * > > & | pickedAugmentedDisplays | |||
) |
Function to do picking on augmented displays. It just calls doSelect on the GlADComposite instance.
bool GlGraphWidget::doSelectAugmentedDisplay | ( | const int | x, | |
const int | y, | |||
std::vector< std::pair< string, tlp::GlAugmentedDisplay * > > & | pickedAugmentedDisplays | |||
) |
Function to do picking on augmented displays. It just calls doSelect on the GlADComposite instance with a small window of twelve pixels.
const stdext::hash_map<std::string, GlAugmentedDisplay*>* GlGraphWidget::getAugmentedDisplays | ( | ) |
Gets the list of augmented displays.
Iterator<GWInteractor *>* GlGraphWidget::getInteractors | ( | ) | const |
virtual QImage GlGraphWidget::grabFrameBuffer | ( | bool | withAlpha = false |
) | [virtual] |
void GlGraphWidget::draw | ( | ) | [slot] |
Draw the graph, the augmented dispaly and the interactors
void GlGraphWidget::redraw | ( | ) | [slot] |
That function is given for optimisation purpose. If the hardware enable it, it enables to redraw only the Augmented display and the interactors and not the graph it is really usefull for interactors such as zoom box etc.. Warning, if you change the graph or the porperties of element (Colors, size, etc...) applying that fonction will not display the change, in that case, use the draw function.
void GlGraphWidget::closeEvent | ( | QCloseEvent * | e | ) | [slot] |
GWInteractor::ID GlGraphWidget::pushInteractor | ( | tlp::GWInteractor * | interactor | ) | [slot] |
install a clone of the interactor as event filter and assign the returned id
void GlGraphWidget::popInteractor | ( | ) | [slot] |
remove the last added interactor from the event filters list and delete it
void GlGraphWidget::removeInteractor | ( | tlp::GWInteractor::ID | id | ) | [slot] |
remove the interactor with id from the event filters list and delete it
GWInteractor::ID GlGraphWidget::resetInteractors | ( | tlp::GWInteractor * | interactor = NULL |
) | [slot] |
remove all interactors and delete them, push a new one if any
vector<GWInteractor::ID> GlGraphWidget::resetInteractors | ( | const std::vector< tlp::GWInteractor * > & | interactors | ) | [slot] |
remove all iteractors and delete them, then install clones of the interactors
void GlGraphWidget::closing | ( | GlGraphWidget * | , | |
QCloseEvent * | ||||
) | [signal] |
void GlGraphWidget::graphRedrawn | ( | GlGraphWidget * | glWidget | ) | [signal] |
void GlGraphWidget::paintEvent | ( | QPaintEvent * | ) | [protected, slot] |
Tulip Software by LaBRI Visualization Team 2001 - 2007 |