Overview | All Modules | Tutorial | User's Guide | Programming Guide
Previous

COVISE Online Documentation

Next

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vrui::coDragNDrop Class Referenceabstract

base class for drag'n'drop classes They should be derived from this class and hand over their 'hit's to it. More...

#include <coDragNDrop.h>

Inheritance diagram for vrui::coDragNDrop:
vrui::coButtonMenuItem

Public Types

enum  { MEDIA_UNKNOWN = 0 , MEDIA_MENUITEM }
 the known media types More...
 

Public Member Functions

 coDragNDrop ()
 simple constructor More...
 
 coDragNDrop (int)
 constructor with specific media type More...
 
virtual ~coDragNDrop ()
 
int getMediaType ()
 

Protected Member Functions

bool processHit ()
 this one checks if drag'n'drop is operated (like a 'hit()' operation) More...
 
void dragOperation ()
 those two do the work and return if it worked :) More...
 
virtual bool dropOperation (coDragNDrop *)=0
 

Protected Attributes

int mediaType
 this objects media type More...
 
vruiTransformNodedragNode
 this is the pfDCS that should be used for drag visualisation More...
 

Detailed Description

base class for drag'n'drop classes They should be derived from this class and hand over their 'hit's to it.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

the known media types

Enumerator
MEDIA_UNKNOWN 
MEDIA_MENUITEM 

Constructor & Destructor Documentation

◆ coDragNDrop() [1/2]

vrui::coDragNDrop::coDragNDrop ( )

simple constructor

◆ coDragNDrop() [2/2]

vrui::coDragNDrop::coDragNDrop ( int  myMediaType)

constructor with specific media type

◆ ~coDragNDrop()

vrui::coDragNDrop::~coDragNDrop ( )
virtual

Member Function Documentation

◆ dragOperation()

void vrui::coDragNDrop::dragOperation ( )
protected

those two do the work and return if it worked :)

◆ dropOperation()

virtual bool vrui::coDragNDrop::dropOperation ( coDragNDrop )
protectedpure virtual

Implemented in vrui::coButtonMenuItem.

◆ getMediaType()

int vrui::coDragNDrop::getMediaType ( )
inline

◆ processHit()

bool vrui::coDragNDrop::processHit ( )
protected

this one checks if drag'n'drop is operated (like a 'hit()' operation)

register Item into selection

Member Data Documentation

◆ dragNode

vruiTransformNode* vrui::coDragNDrop::dragNode
protected

this is the pfDCS that should be used for drag visualisation

◆ mediaType

int vrui::coDragNDrop::mediaType
protected

this objects media type


The documentation for this class was generated from the following files:
PreviousNext

Authors: Martin Aumüller, Ruth Lang, Daniela Rainer, Jürgen Schulze-Döbold, Andreas Werner, Peter Wolf, Uwe Wössner
Copyright © 1993-2009 HLRS, 2004-2009 RRZK, 2005-2009 Visenso
COVISE Version 6.5 Academic