OpenCOVER
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

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  )

constructor with specific media type

◆ ~coDragNDrop()

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

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 file: