Coin Logo http://www.sim.no
http://www.coin3d.org

SoUnits.h
1 #ifndef COIN_SOUNITS_H
2 #define COIN_SOUNITS_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * ("GPL") version 2 as published by the Free Software Foundation.
12  * See the file LICENSE.GPL at the root directory of this source
13  * distribution for additional information about the GNU GPL.
14  *
15  * For using Coin with software that can not be combined with the GNU
16  * GPL, and for taking advantage of the additional benefits of our
17  * support services, please contact Systems in Motion about acquiring
18  * a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/nodes/SoSubNode.h>
28 #include <Inventor/nodes/SoTransformation.h>
29 #include <Inventor/fields/SoSFEnum.h>
30 
31 class COIN_DLL_API SoUnits : public SoTransformation {
33 
34  SO_NODE_HEADER(SoUnits);
35 
36 public:
37  static void initClass(void);
38  SoUnits(void);
39 
40  // These have to match the order of the enum in SoUnitsElement
41  // 100% or weird and hard to debug artifacts will show up.
42  enum Units {
43  METERS,
44  CENTIMETERS,
45  MILLIMETERS,
46  MICROMETERS,
47  MICRONS,
48  NANOMETERS,
49  ANGSTROMS,
50  KILOMETERS,
51  FEET,
52  INCHES,
53  POINTS,
54  YARDS,
55  MILES,
56  NAUTICAL_MILES
57  };
58 
60 
61  virtual void doAction(SoAction * action);
62  virtual void callback(SoCallbackAction * action);
63  virtual void getBoundingBox(SoGetBoundingBoxAction * action);
64  virtual void getMatrix(SoGetMatrixAction * action);
65  virtual void GLRender(SoGLRenderAction * action);
66  virtual void pick(SoPickAction * action);
67  virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
68 
69 protected:
70  virtual ~SoUnits();
71 };
72 
73 #endif // !COIN_SOUNITS_H
SbRotation::getValue
const float * getValue(void) const
Definition: SbRotation.cpp:179
SbRotation
The SbRotation class represents a rotation in 3D space.
Definition: SbRotation.h:33
SoState
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:35
SoListenerDopplerElement::getDopplerVelocity
static const SbVec3f & getDopplerVelocity(SoState *const state)
Returns the current listener's doppler velocity.
Definition: SoListenerDopplerElement.cpp:127
SoListenerPositionElement::get
static const SbVec3f & get(SoState *const state)
Returns the current listener position.
Definition: SoListenerPositionElement.cpp:111
SoVRMLSound::setDopplerVelocity
void setDopplerVelocity(float velocity)
Definition: Sound.cpp:540
SoUnits::~SoUnits
virtual ~SoUnits()
Definition: SoUnits.cpp:130
SoAudioRenderAction
The SoAudioRenderAction class renders the aural parts of the scene graph.
Definition: SoAudioRenderAction.h:30
SoUnits::units
SoSFEnum units
Definition: SoUnits.h:59
SoVRMLSound::SoVRMLSound
SoVRMLSound(void)
Definition: Sound.cpp:353
SoVRMLSound::intensity
SoSFFloat intensity
Definition: SoVRMLSound.h:47
SbMatrix
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition: SbMatrix.h:37
SoDebugError::post
static void post(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:314
SoAudioDevice::instance
static SoAudioDevice * instance()
Definition: SoAudioDevice.cpp:99
SoSensor
The SoSensor class is the abstract base class for all sensors.
Definition: SoSensor.h:34
SoVRMLSound::startPlaying
void startPlaying(SoPath *path, void *userdataptr)
Definition: Sound.cpp:596
SoTransformation
The SoTransformation class is the abstract base class for transformation nodes.
Definition: SoTransformation.h:29
SoVRMLSound::setDopplerFactor
void setDopplerFactor(float factor)
Definition: Sound.cpp:568
SoNode::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoNode.cpp:904
SoVRMLSound::maxBack
SoSFFloat maxBack
Definition: SoVRMLSound.h:54
SoSFBool
The SoSFBool class is a container for an SbBool value.
Definition: SoSFBool.h:30
SoField::isIgnored
SbBool isIgnored(void) const
Definition: SoField.cpp:638
SoVRMLSound::direction
SoSFVec3f direction
Definition: SoVRMLSound.h:50
SoGetMatrixAction::getInverse
SbMatrix & getInverse(void)
Definition: SoGetMatrixAction.cpp:160
SoVRMLSound::minFront
SoSFFloat minFront
Definition: SoVRMLSound.h:51
SbMatrix::multLeft
SbMatrix & multLeft(const SbMatrix &m)
Definition: SbMatrix.cpp:1280
SoDebugError::postWarning
static void postWarning(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:324
SoAction
The SoAction class is the base class for all traversal actions.
Definition: SoAction.h:67
SoUnits::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoUnits.cpp:157
SoVRMLSound::getDopplerVelocity
float getDopplerVelocity()
Definition: Sound.cpp:554
SbMatrix::setScale
void setScale(const float s)
Definition: SbMatrix.cpp:760
SoNode::getPrimitiveCount
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition: SoNode.cpp:846
SoUnits
The SoUnits class is a node for setting unit types.
Definition: SoUnits.h:31
SoUnits::getMatrix
virtual void getMatrix(SoGetMatrixAction *action)
Definition: SoUnits.cpp:190
SoAudioRenderAction::addMethod
static void addMethod(const SoType type, SoActionMethod method)
Definition: SoAudioRenderAction.cpp:74
SbMatrix::multRight
SbMatrix & multRight(const SbMatrix &m)
Definition: SbMatrix.cpp:1240
SoNode::audioRenderS
static void audioRenderS(SoAction *action, SoNode *node)
Definition: SoNode.cpp:1239
SoUnits::Units
Units
Definition: SoUnits.h:42
SbVec3f::length
float length(void) const
Definition: SbVec3f.cpp:356
SoVRMLSound::audioRender
virtual void audioRender(SoAudioRenderAction *action)
Definition: Sound.cpp:672
SoUnits::getBoundingBox
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
Definition: SoUnits.cpp:150
SoVRMLSound::location
SoSFVec3f location
Definition: SoVRMLSound.h:49
SoListenerOrientationElement::get
static const SbRotation & get(SoState *const state)
Returns the current listener orientation.
Definition: SoListenerOrientationElement.cpp:113
SoNode::callback
virtual void callback(SoCallbackAction *action)
Definition: SoNode.cpp:974
SoBase::unref
void unref(void) const
Definition: SoBase.cpp:627
SoListenerGainElement::get
static float get(SoState *const state)
Definition: SoListenerGainElement.cpp:92
SbCondVar
A class for synchronizing access to global variables.
Definition: SbCondVar.h:32
SoVRMLSound::spatialize
SoSFBool spatialize
Definition: SoVRMLSound.h:55
SoPath
The SoPath class is a container class for traversal path descriptions.
Definition: SoPath.h:43
SoUnits::doAction
virtual void doAction(SoAction *action)
Definition: SoUnits.cpp:164
SoGetMatrixAction
The SoGetMatrixAction class is an action for accumulating the transformation matrix of a subgraph.
Definition: SoGetMatrixAction.h:35
SbRotation::inverse
SbRotation inverse(void) const
Definition: SbRotation.cpp:316
SbList< unsigned int >
SoDebugError::postInfo
static void postInfo(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:334
SoNode::getMatrix
virtual void getMatrix(SoGetMatrixAction *action)
Definition: SoNode.cpp:1001
SoGetMatrixAction::getMatrix
SbMatrix & getMatrix(void)
Definition: SoGetMatrixAction.cpp:151
SoVRMLSound::stopPlaying
void stopPlaying(SoPath *path, void *userdataptr)
Definition: Sound.cpp:609
SoSFEnum
The SoSFEnum class is a container for an enum value.
Definition: SoSFEnum.h:31
SoVRMLAudioClip
The SoVRMLAudioClip class is used to load and store audio data.
Definition: SoVRMLAudioClip.h:40
SoVRMLSound::priority
SoSFFloat priority
Definition: SoVRMLSound.h:48
SoVRMLSound::source
SoSFNode source
Definition: SoVRMLSound.h:46
SoBase
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition: SoBase.h:41
SoTimerSensor
The SoTimerSensor class is a sensor which will trigger at given intervals.
Definition: SoTimerSensor.h:29
SoAction::getState
SoState * getState(void) const
Definition: SoAction.cpp:1028
SoVRMLSound
The SoVRMLSound class is used to represent a sound source.
Definition: SoVRMLSound.h:38
SoBase::ref
void ref(void) const
Definition: SoBase.cpp:574
SoVRMLSound::minBack
SoSFFloat minBack
Definition: SoVRMLSound.h:53
SbVec3f
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
SbTime::getValue
double getValue(void) const
Definition: SbTime.cpp:259
SoGetBoundingBoxAction
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.
Definition: SoGetBoundingBoxAction.h:34
SoCallbackAction
The SoCallbackAction class invokes callbacks at specific nodes.
Definition: SoCallbackAction.h:70
SbMutex
A basic class for managing a mutex.
Definition: SbMutex.h:30
SoUnits::pick
virtual void pick(SoPickAction *action)
Definition: SoUnits.cpp:213
SbRotation::multVec
void multVec(const SbVec3f &src, SbVec3f &dst) const
Definition: SbRotation.cpp:593
SoVRMLSound::~SoVRMLSound
virtual ~SoVRMLSound(void)
Definition: Sound.cpp:514
SoFieldSensor
The SoFieldSensor class detects changes to a field.
Definition: SoFieldSensor.h:29
SbVec3f::normalize
float normalize(void)
Definition: SbVec3f.cpp:436
SbTime
The SbTime class instances represents time values.
Definition: SbTime.h:41
SoBase::isOfType
SbBool isOfType(SoType type) const
Definition: SoBase.cpp:710
SoNode
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
SoVRMLSound::getDopplerFactor
float getDopplerFactor()
Definition: Sound.cpp:581
SbVec3f::getValue
const float * getValue(void) const
Definition: SbVec3f.cpp:334
SoUnits::getPrimitiveCount
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition: SoUnits.cpp:220
SoNode::pick
virtual void pick(SoPickAction *action)
Definition: SoNode.cpp:1057
SoNode::doAction
virtual void doAction(SoAction *action)
Definition: SoNode.cpp:761
SbThreadAutoLock
Simple convenience class for locking access to a function.
Definition: SbThreadAutoLock.h:30
SoNode::getBoundingBox
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
Definition: SoNode.cpp:817
SoGLRenderAction
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition: SoGLRenderAction.h:39
SoGetPrimitiveCountAction
The SoGetPrimitiveCountAction class counts the primitives in a scene.
Definition: SoGetPrimitiveCountAction.h:32
SoUnits::SoUnits
SoUnits(void)
Definition: SoUnits.cpp:104
SoPickAction
The SoPickAction class is the base class for picking actions.
Definition: SoPickAction.h:32
SoUnits::callback
virtual void callback(SoCallbackAction *action)
Definition: SoUnits.cpp:183
SoVRMLSound::maxFront
SoSFFloat maxFront
Definition: SoVRMLSound.h:52

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Mon Jul 27 2020 for Coin by Doxygen. 1.8.18