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) 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
34
35
36class COIN_DLL_API SoComputeBoundingBox : public SoEngine {
37 typedef SoEngine inherited;
38
39 SO_ENGINE_HEADER(SoComputeBoundingBox);
40
41public:
44
45 SoEngineOutput min; // SoSFVec3f
46 SoEngineOutput max; // SoSFVec3f
49
51 static void initClass(void);
52
53 void setViewportRegion(const SbViewportRegion & vpr);
54 const SbViewportRegion & getViewportRegion(void) const;
55
56protected:
57 virtual ~SoComputeBoundingBox(void);
58
59private:
60 virtual void evaluate(void);
61 SoGetBoundingBoxAction * bboxaction;
62};
63
64#endif // !COIN_SOCOMPUTEBOUNDINGBOX_H
The SbViewportRegion class is a viewport within a full window.
Definition SbViewportRegion.h:31
The SoComputeBoundingBox class is used to calculate a bounding box.
Definition SoComputeBoundingBox.h:36
SoSFNode node
Definition SoComputeBoundingBox.h:42
SoEngineOutput min
Definition SoComputeBoundingBox.h:45
SoEngineOutput objectCenter
Definition SoComputeBoundingBox.h:48
SoSFPath path
Definition SoComputeBoundingBox.h:43
SoEngineOutput max
Definition SoComputeBoundingBox.h:46
SoEngineOutput boxCenter
Definition SoComputeBoundingBox.h:47
The SoEngineOutput class is the output slots in SoEngine instances.
Definition SoEngineOutput.h:36
SoEngine is the base class for Coin engines.
Definition SoEngine.h:34
virtual void evaluate(void)=0
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.
Definition SoGetBoundingBoxAction.h:36
The SoSFNode class is a container for a single node.
Definition SoSFNode.h:38
The SoSFPath class is a container for a single path.
Definition SoSFPath.h:34

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

Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.