| 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) by Kongsberg Oil & Gas Technologies.
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 Kongsberg Oil & Gas Technologies
15 * about acquiring a Coin Professional Edition License.
16 *
17 * See http://www.coin3d.org/ for more information.
18 *
19 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, 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
33 class SoGetBoundingBoxAction;
34
35
36 class COIN_DLL_API SoComputeBoundingBox : public SoEngine {
37 typedef SoEngine inherited;
38
39 SO_ENGINE_HEADER(SoComputeBoundingBox);
40
41 public:
42 SoSFNode node;
43 SoSFPath path;
44
45 SoEngineOutput min; // SoSFVec3f
46 SoEngineOutput max; // SoSFVec3f
47 SoEngineOutput boxCenter; // SoSFVec3f
48 SoEngineOutput objectCenter; // SoSFVec3f
49
50 SoComputeBoundingBox(void);
51 static void initClass(void);
52
53 void setViewportRegion(const SbViewportRegion & vpr);
54 const SbViewportRegion & getViewportRegion(void) const;
55
56 protected:
57 virtual ~SoComputeBoundingBox(void);
58
59 private:
60 virtual void evaluate(void);
61 SoGetBoundingBoxAction * bboxaction;
62 };
63
64 #endif // !COIN_SOCOMPUTEBOUNDINGBOX_H
SoComputeBoundingBox::node
SoSFNode node
Definition: SoComputeBoundingBox.h:42
SoEngine
SoEngine is the base class for Coin engines.Engines enables the application programmers to make compl...
Definition: SoEngine.h:34
SoComputeBoundingBox::objectCenter
SoEngineOutput objectCenter
Definition: SoComputeBoundingBox.h:48
SoComputeBoundingBox::min
SoEngineOutput min
Definition: SoComputeBoundingBox.h:45
SoComputeBoundingBox::boxCenter
SoEngineOutput boxCenter
Definition: SoComputeBoundingBox.h:47
SoComputeBoundingBox
The SoComputeBoundingBox class is used to calculate a bounding box.This engine is simply a wrapper ar...
Definition: SoComputeBoundingBox.h:36
SoSFNode
The SoSFNode class is a container for a single node.This field container stores a pointer to a Coin n...
Definition: SoSFNode.h:38
SoGetBoundingBoxAction
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:36
SoEngineOutput
The SoEngineOutput class is the output slots in SoEngine instances.SoEngineOutput has methods for con...
Definition: SoEngineOutput.h:36
SoSFPath
The SoSFPath class is a container for a single path.This field container stores a pointer to a Coin p...
Definition: SoSFPath.h:34
SoComputeBoundingBox::path
SoSFPath path
Definition: SoComputeBoundingBox.h:43
SoEngine::evaluate
virtual void evaluate(void)=0
SbViewportRegion
The SbViewportRegion class is a viewport within a full window.The SbViewportRegion class contains inf...
Definition: SbViewportRegion.h:31
SoComputeBoundingBox::max
SoEngineOutput max
Definition: SoComputeBoundingBox.h:46

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.