OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vrui::coDragNDrop Class Referenceabstract

#include <coDragNDrop.h>

Inheritance diagram for vrui::coDragNDrop:
Inheritance graph
[legend]
Collaboration diagram for vrui::coDragNDrop:
Collaboration graph
[legend]

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 ()
 
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

the known media types

Enumerator
MEDIA_UNKNOWN 
MEDIA_MENUITEM 

Constructor & Destructor Documentation

vrui::coDragNDrop::coDragNDrop ( )

simple constructor

vrui::coDragNDrop::coDragNDrop ( int  )

constructor with specific media type

virtual vrui::coDragNDrop::~coDragNDrop ( )
virtual

Member Function Documentation

void vrui::coDragNDrop::dragOperation ( )
protected

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

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

Implemented in vrui::coButtonMenuItem.

int vrui::coDragNDrop::getMediaType ( )
inline
bool vrui::coDragNDrop::processHit ( )
protected

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

Member Data Documentation

vruiTransformNode* vrui::coDragNDrop::dragNode
protected

this is the pfDCS that should be used for drag visualisation

int vrui::coDragNDrop::mediaType
protected

this objects media type


The documentation for this class was generated from the following file: