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

SoBoxHighlightRenderAction.h
1 #ifndef COIN_SOBOXHIGHLIGHTRENDERACTION_H
2 #define COIN_SOBOXHIGHLIGHTRENDERACTION_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/actions/SoGLRenderAction.h>
28 #include <Inventor/SbColor.h>
29 
30 class SoBoxHighlightRenderActionP;
31 
32 class COIN_DLL_API SoBoxHighlightRenderAction : public SoGLRenderAction {
34 
35  SO_ACTION_HEADER(SoBoxHighlightRenderAction);
36 
37 public:
39  SoBoxHighlightRenderAction(const SbViewportRegion & viewportregion);
40  virtual ~SoBoxHighlightRenderAction();
41 
42  static void initClass(void);
43 
44  virtual void apply(SoNode * node);
45  virtual void apply(SoPath * path);
46  virtual void apply(const SoPathList & pathlist, SbBool obeysrules = FALSE);
47  void setVisible(const SbBool visible);
48  SbBool isVisible(void) const;
49  void setColor(const SbColor & color);
50  const SbColor & getColor(void);
51  void setLinePattern(unsigned short pattern);
52  unsigned short getLinePattern(void) const;
53  void setLineWidth(const float width);
54  float getLineWidth(void) const;
55 
56 protected:
57 
58  SbBool hlVisible;
59 
60  // Some protected members are missing compared to OIV here.
61  // I doubt that anyone will use them though, since it looked
62  // like they should have been private. We chose to implement this
63  // action in a different manner. But, if you need the protected members
64  // provided by OIV here, contact us any we'll consider reimplementing
65  // the action to conform more to OIV. pederb, 20000222
66 
67 private:
68  void init(void);
69  void drawBoxes(SoPath * pathtothis, const SoPathList * pathlist);
70 
71  SoBoxHighlightRenderActionP * pimpl;
72 };
73 
74 #endif // !COIN_SOBOXHIGHLIGHTRENDERACTION_H
SoSeparator::OFF
@ OFF
Definition: SoSeparator.h:45
SbPList::getLength
int getLength(void) const
Definition: SbPList.h:94
SoState
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:35
SoCube
The SoCube class is for rendering cubes.
Definition: SoCube.h:33
SoAction::apply
virtual void apply(SoNode *root)
Definition: SoAction.cpp:476
SoPath::getTail
SoNode * getTail(void) const
Definition: SoPath.cpp:373
SoState::pop
void pop(void)
Definition: SoState.cpp:284
SoSearchAction::setFind
void setFind(const int what)
Definition: SoSearchAction.cpp:230
SbMatrix
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition: SbMatrix.h:37
SoSelection::getNumSelected
int getNumSelected(void) const
Definition: SoSelection.cpp:482
SoBoxHighlightRenderAction
The SoBoxHighlightRenderAction class renders the scene with highlighted boxes around selections.
Definition: SoBoxHighlightRenderAction.h:32
SoState::push
void push(void)
Definition: SoState.cpp:265
SoSearchAction
The SoSearchAction class provides methods for searching through scene graphs.
Definition: SoSearchAction.h:32
SbMatrix::multLeft
SbMatrix & multLeft(const SbMatrix &m)
Definition: SbMatrix.cpp:1280
SoBoxHighlightRenderAction::apply
virtual void apply(SoNode *node)
Definition: SoBoxHighlightRenderAction.cpp:257
SoFullPath
The SoFullPath class allows examination of hidden children in paths.
Definition: SoFullPath.h:29
SoBoxHighlightRenderAction::getLineWidth
float getLineWidth(void) const
Definition: SoBoxHighlightRenderAction.cpp:379
SbXfBox3f
The SbXfBox3f class is a 3 dimensional box with floating point coordinates and an attached transforma...
Definition: SbXfBox3f.h:31
SoPathList
The SoPathList class is a container for pointers to SoPath objects.
Definition: SoPathList.h:31
SoBoxHighlightRenderAction::setColor
void setColor(const SbColor &color)
Definition: SoBoxHighlightRenderAction.cpp:332
SoLightModel::model
SoSFEnum model
Definition: SoLightModel.h:45
SoDrawStyle
The SoDrawStyle class specificies common rendering properties for shapes.
Definition: SoDrawStyle.h:33
SoType::isDerivedFrom
SbBool isDerivedFrom(const SoType type) const
Definition: SoType.cpp:687
SoBoxHighlightRenderAction::hlVisible
SbBool hlVisible
Definition: SoBoxHighlightRenderAction.h:58
SoBoxHighlightRenderAction::setLinePattern
void setLinePattern(unsigned short pattern)
Definition: SoBoxHighlightRenderAction.cpp:351
SoPath
The SoPath class is a container class for traversal path descriptions.
Definition: SoPath.h:43
SoGLRenderAction::setNumPasses
void setNumPasses(const int num)
Definition: SoGLRenderAction.cpp:829
SoSelection::getList
const SoPathList * getList(void) const
Definition: SoSelection.cpp:491
SoLightModel
The SoLightModel class is a node for specifying the model for geometry lighting.
Definition: SoLightModel.h:31
SbColor
The SbColor class contains the red, green and blue components which make up a color value.
Definition: SbColor.h:30
SoAction::getState
SoState * getState(void) const
Definition: SoAction.cpp:1028
SoBase::ref
void ref(void) const
Definition: SoBase.cpp:574
SoComplexity::textureQuality
SoSFFloat textureQuality
Definition: SoComplexity.h:49
SbVec3f
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
SoGetBoundingBoxAction
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.
Definition: SoGetBoundingBoxAction.h:34
SbBox3f::getSize
void getSize(float &dx, float &dy, float &dz) const
Definition: SbBox3f.cpp:405
SoBoxHighlightRenderAction::getLinePattern
unsigned short getLinePattern(void) const
Definition: SoBoxHighlightRenderAction.cpp:360
SbViewportRegion
The SbViewportRegion class is a viewport within a full window.
Definition: SbViewportRegion.h:31
SoSelection::getTypeId
virtual SoType getTypeId(void) const
Definition: SoSelection.cpp:272
SoGLRenderAction::getNumPasses
int getNumPasses(void) const
Definition: SoGLRenderAction.cpp:838
SbXfBox3f::getTransform
const SbMatrix & getTransform(void) const
Definition: SbXfBox3f.cpp:135
SoBoxHighlightRenderAction::isVisible
SbBool isVisible(void) const
Definition: SoBoxHighlightRenderAction.cpp:322
SoSeparator
The SoSeparator class is a state-preserving group node.
Definition: SoSeparator.h:34
SoBoxHighlightRenderAction::setVisible
void setVisible(const SbBool visible)
Definition: SoBoxHighlightRenderAction.cpp:313
SoComplexity
The SoComplexity class is a node type which is used to set the tradeoff between quality and performan...
Definition: SoComplexity.h:32
SoBoxHighlightRenderAction::setLineWidth
void setLineWidth(const float width)
Definition: SoBoxHighlightRenderAction.cpp:370
SoBaseColor
The SoBaseColor class provides a node type for convenient setting of the base material color.
Definition: SoBaseColor.h:32
SoPath::getNode
SoNode * getNode(const int index) const
Definition: SoPath.cpp:402
SoDrawStyle::style
SoSFEnum style
Definition: SoDrawStyle.h:49
SoNode
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
SoFullPath::getLength
int getLength(void) const
Definition: SoFullPath.cpp:106
SoBoxHighlightRenderAction::~SoBoxHighlightRenderAction
virtual ~SoBoxHighlightRenderAction()
Definition: SoBoxHighlightRenderAction.cpp:243
SoBoxHighlightRenderAction::getColor
const SbColor & getColor(void)
Definition: SoBoxHighlightRenderAction.cpp:341
SbMatrix::setTranslate
void setTranslate(const SbVec3f &t)
Definition: SbMatrix.cpp:790
SbBox3f::isEmpty
SbBool isEmpty(void) const
Definition: SbBox3f.cpp:436
SoGLRenderAction
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition: SoGLRenderAction.h:39
SoComplexity::type
SoSFEnum type
Definition: SoComplexity.h:47
SoMatrixTransform
The SoMatrixTransform class is a transformation node.
Definition: SoMatrixTransform.h:31
SoBoxHighlightRenderAction::SoBoxHighlightRenderAction
SoBoxHighlightRenderAction(void)
Definition: SoBoxHighlightRenderAction.cpp:197
SoSelection
The SoSelection class manages a list of selected nodes.
Definition: SoSelection.h:41

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

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