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

SoComputeBoundingBox.h
1 /**************************************************************************\
2  *
3  * This file is part of the Coin 3D visualization library.
4  * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * ("GPL") version 2 as published by the Free Software Foundation.
9  * See the file LICENSE.GPL at the root directory of this source
10  * distribution for additional information about the GNU GPL.
11  *
12  * For using Coin with software that can not be combined with the GNU
13  * GPL, and for taking advantage of the additional benefits of our
14  * support services, please contact Systems in Motion about acquiring
15  * a Coin Professional Edition License.
16  *
17  * See http://www.coin3d.org/ for more information.
18  *
19  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
20  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
21  *
22 \**************************************************************************/
23 
24 #ifndef COIN_SOCOMPUTEBOUNDINGBOX_H
25 #define COIN_SOCOMPUTEBOUNDINGBOX_H
26 
27 #include <Inventor/engines/SoSubEngine.h>
28 #include <Inventor/engines/SoEngineOutput.h>
29 #include <Inventor/fields/SoSFNode.h>
30 #include <Inventor/fields/SoSFPath.h>
31 #include <Inventor/SbViewportRegion.h>
32 
34 
35 
36 class COIN_DLL_API SoComputeBoundingBox : public SoEngine {
37  typedef SoEngine inherited;
38 
39  SO_ENGINE_HEADER(SoComputeBoundingBox);
40 
41 public:
44 
45  SoEngineOutput min; // SoSFVec3f
46  SoEngineOutput max; // SoSFVec3f
47  SoEngineOutput boxCenter; // SoSFVec3f
49 
51  static void initClass(void);
52 
53  void setViewportRegion(const SbViewportRegion & vpr);
54  const SbViewportRegion & getViewportRegion(void) const;
55 
56 protected:
57  virtual ~SoComputeBoundingBox();
58 
59 private:
60  virtual void evaluate(void);
61  SoGetBoundingBoxAction * bboxaction;
62 };
63 
64 #endif // !COIN_SOCOMPUTEBOUNDINGBOX_H
SoSFNode node
Definition: SoComputeBoundingBox.h:42
SoEngine is the base class for Coin engines.Engines enables the application programmers to make compl...
Definition: SoEngine.h:34
SoEngineOutput objectCenter
Definition: SoComputeBoundingBox.h:48
SoEngineOutput min
Definition: SoComputeBoundingBox.h:45
SoEngineOutput boxCenter
Definition: SoComputeBoundingBox.h:47
The SoComputeBoundingBox class is used to calculate a bounding box.This engine is simply a wrapper ar...
Definition: SoComputeBoundingBox.h:36
The SoSFNode class is a container for a single node.This field container stores a pointer to a Coin n...
Definition: SoSFNode.h:38
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.If this action is applied to a path or scene graph root, it will calculate the bounding box and the center point of the geometry contained within the scene.
Definition: SoGetBoundingBoxAction.h:34
The SoEngineOutput class is the output slots in SoEngine instances.SoEngineOutput has methods for con...
Definition: SoEngineOutput.h:36
The SoSFPath class is a container for a single path.This field container stores a pointer to a Coin p...
Definition: SoSFPath.h:34
SoSFPath path
Definition: SoComputeBoundingBox.h:43
virtual void evaluate(void)=0
The SbViewportRegion class is a viewport within a full window.The SbViewportRegion class contains inf...
Definition: SbViewportRegion.h:31
SoEngineOutput max
Definition: SoComputeBoundingBox.h:46

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

Generated on Fri Jul 20 2018 for Coin by Doxygen. 1.8.14