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

SoTabBoxDragger.h
1 #ifndef COIN_SOTABBOXDRAGGER_H
2 #define COIN_SOTABBOXDRAGGER_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/draggers/SoDragger.h>
28 #include <Inventor/fields/SoSFVec3f.h>
29 
30 class SoSensor;
31 class SoFieldSensor;
32 
33 
34 class COIN_DLL_API SoTabBoxDragger : public SoDragger {
35  typedef SoDragger inherited;
36 
37  SO_KIT_HEADER(SoTabBoxDragger);
38 
39  SO_KIT_CATALOG_ENTRY_HEADER(boxGeom);
40  SO_KIT_CATALOG_ENTRY_HEADER(surroundScale);
41  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane1);
42  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane1Sep);
43  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane1Xf);
44  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane2);
45  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane2Sep);
46  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane2Xf);
47  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane3);
48  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane3Sep);
49  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane3Xf);
50  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane4);
51  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane4Sep);
52  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane4Xf);
53  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane5);
54  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane5Sep);
55  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane5Xf);
56  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane6);
57  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane6Sep);
58  SO_KIT_CATALOG_ENTRY_HEADER(tabPlane6Xf);
59 
60 
61 public:
62  static void initClass(void);
63  SoTabBoxDragger(void);
64 
67 
68  void adjustScaleTabSize(void);
69 
70 protected:
71  ~SoTabBoxDragger();
72  virtual SbBool setUpConnections(SbBool onoff, SbBool doitalways = FALSE);
73  virtual void setDefaultOnNonWritingFields(void);
74 
75  static void invalidateSurroundScaleCB(void * f, SoDragger * d);
76  static void fieldSensorCB(void * f, SoSensor * s);
77  static void valueChangedCB(void * f, SoDragger * d);
78 
81 
82 private:
83  void initTransformNodes(void);
84 };
85 
86 #endif // !COIN_SOTABBOXDRAGGER_H
SoSFVec3f
The SoSFVec3f class is a container for an SbVec3f vector.
Definition: SoSFVec3f.h:31
SbRotation
The SbRotation class represents a rotation in 3D space.
Definition: SbRotation.h:33
SoTabBoxDragger::adjustScaleTabSize
void adjustScaleTabSize(void)
Definition: SoTabBoxDragger.cpp:382
SoTabBoxDragger::scaleFieldSensor
SoFieldSensor * scaleFieldSensor
Definition: SoTabBoxDragger.h:80
SoDragger::workFieldsIntoTransform
void workFieldsIntoTransform(SbMatrix &mtx)
Definition: SoDragger.cpp:1123
SoDragger::registerChildDragger
void registerChildDragger(SoDragger *child)
Definition: SoDragger.cpp:722
SbMatrix
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition: SbMatrix.h:37
SoBaseKit::getAnyPart
virtual SoNode * getAnyPart(const SbName &partname, SbBool makeifneeded, SbBool leafcheck=0, SbBool publiccheck=0)
Definition: SoBaseKit.cpp:1722
SoSensor
The SoSensor class is the abstract base class for all sensors.
Definition: SoSensor.h:34
SoTabBoxDragger::setDefaultOnNonWritingFields
virtual void setDefaultOnNonWritingFields(void)
Definition: SoTabBoxDragger.cpp:284
SoFieldSensor::getAttachedField
SoField * getAttachedField(void) const
Definition: SoFieldSensor.cpp:107
SoTransform::translation
SoSFVec3f translation
Definition: SoTransform.h:43
SoSurroundScale
The SoSurroundScale class is used to automatically scale geometry to surround other geometry.
Definition: SoSurroundScale.h:34
SoDragger::removeFinishCallback
void removeFinishCallback(SoDraggerCB *func, void *data=NULL)
Definition: SoDragger.cpp:622
SoDragger
The SoDragger class is the base class for all draggers.
Definition: SoDragger.h:53
SbString
The SbString class is a string class with convenience functions for string operations.
Definition: SbString.h:42
SoInteractionKit::readDefaultParts
static void readDefaultParts(const char *fileName, const char defaultBuffer[], int defBufSize)
Definition: SoInteractionKit.cpp:433
SoTabBoxDragger::translFieldSensor
SoFieldSensor * translFieldSensor
Definition: SoTabBoxDragger.h:79
SoTabBoxDragger::invalidateSurroundScaleCB
static void invalidateSurroundScaleCB(void *f, SoDragger *d)
Definition: SoTabBoxDragger.cpp:337
SoDragger::addFinishCallback
void addFinishCallback(SoDraggerCB *func, void *data=NULL)
Definition: SoDragger.cpp:611
SoFieldSensor::detach
void detach(void)
Definition: SoFieldSensor.cpp:92
SoTabBoxDragger
The SoTabBoxDragger wraps a box around geometry you can then translate and scale.
Definition: SoTabBoxDragger.h:34
SoInteractionKit::setUpConnections
virtual SbBool setUpConnections(SbBool onoff, SbBool doitalways=0)
Definition: SoInteractionKit.cpp:648
SoSurroundScale::invalidate
void invalidate(void)
Definition: SoSurroundScale.cpp:270
SoDragger::addValueChangedCallback
void addValueChangedCallback(SoDraggerCB *func, void *data=NULL)
Definition: SoDragger.cpp:634
SoDragger::setMotionMatrix
void setMotionMatrix(const SbMatrix &newmatrix)
Definition: SoDragger.cpp:905
SoField::setDefault
void setDefault(SbBool def)
Definition: SoField.cpp:650
SoTabBoxDragger::SoTabBoxDragger
SoTabBoxDragger(void)
Definition: SoTabBoxDragger.cpp:164
SoDragger::removeStartCallback
void removeStartCallback(SoDraggerCB *func, void *data=NULL)
Definition: SoDragger.cpp:581
SbMatrix::getTransform
void getTransform(SbVec3f &t, SbRotation &r, SbVec3f &s, SbRotation &so) const
Definition: SbMatrix.cpp:997
SoTabBoxDragger::fieldSensorCB
static void fieldSensorCB(void *f, SoSensor *s)
Definition: SoTabBoxDragger.cpp:300
SoTabBoxDragger::translation
SoSFVec3f translation
Definition: SoTabBoxDragger.h:65
SoTabBoxDragger::~SoTabBoxDragger
~SoTabBoxDragger()
Definition: SoTabBoxDragger.cpp:227
SbVec3f
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
SoTabPlaneDragger
The SoTabPlaneDragger class is a dragger you can translate and scale within a plane.
Definition: SoTabPlaneDragger.h:36
SoDragger::setDefaultOnNonWritingFields
virtual void setDefaultOnNonWritingFields(void)
Definition: SoDragger.cpp:1743
SbString::sprintf
SbString & sprintf(const char *formatstr,...)
Definition: SbString.h:105
SoBaseKit::connectionsSetUp
SbBool connectionsSetUp
Definition: SoBaseKit.h:142
SoTabBoxDragger::scaleFactor
SoSFVec3f scaleFactor
Definition: SoTabBoxDragger.h:66
SoFieldSensor::attach
void attach(SoField *field)
Definition: SoFieldSensor.cpp:77
SoDragger::getMotionMatrix
const SbMatrix & getMotionMatrix(void)
Definition: SoDragger.cpp:688
SoFieldSensor
The SoFieldSensor class detects changes to a field.
Definition: SoFieldSensor.h:29
SoInteractionKit
The SoInteractionKit class is a base class for draggers.
Definition: SoInteractionKit.h:41
SoTabBoxDragger::valueChangedCB
static void valueChangedCB(void *f, SoDragger *d)
Definition: SoTabBoxDragger.cpp:310
SoTabBoxDragger::setUpConnections
virtual SbBool setUpConnections(SbBool onoff, SbBool doitalways=0)
Definition: SoTabBoxDragger.cpp:235
SoSeparator
The SoSeparator class is a state-preserving group node.
Definition: SoSeparator.h:34
SoTransform
The SoTransform class is the "all-purpose" transformation node type.
Definition: SoTransform.h:34
SoDragger::unregisterChildDragger
void unregisterChildDragger(SoDragger *child)
Definition: SoDragger.cpp:735
SoDragger::addStartCallback
void addStartCallback(SoDraggerCB *func, void *data=NULL)
Definition: SoDragger.cpp:570
SoInteractionKit::fieldSensorCB
static void fieldSensorCB(void *, SoSensor *)
Definition: SoInteractionKit.cpp:725
SoTransform::rotation
SoSFRotation rotation
Definition: SoTransform.h:44
SbString::getString
const char * getString(void) const
Definition: SbString.h:71
SoDragger::initClass
static void initClass(void)
Definition: SoDragger.cpp:388
SoInteractionKit::setPartAsDefault
virtual SbBool setPartAsDefault(const SbName &partname, SoNode *node, SbBool onlyifdefault=1)
Definition: SoInteractionKit.cpp:271

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

Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17