SoOrthographicCamera.h
#ifndef COIN_SOORTHOGRAPHICCAMERA_H
#define COIN_SOORTHOGRAPHICCAMERA_H
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\**************************************************************************/
#include <Inventor/nodes/SoSubNode.h>
#include <Inventor/nodes/SoCamera.h>
class COIN_DLL_API SoOrthographicCamera : public SoCamera {
typedef SoCamera inherited;
SO_NODE_HEADER(SoOrthographicCamera);
public:
static void initClass(void);
SoOrthographicCamera(void);
SoSFFloat height;
virtual void scaleHeight(float scalefactor);
virtual SbViewVolume getViewVolume(float useaspectratio = 0.0f) const;
virtual void viewBoundingBox(const SbBox3f & box, float aspect, float slack);
protected:
virtual ~SoOrthographicCamera();
};
#endif // !COIN_SOORTHOGRAPHICCAMERA_H
SbBox3f
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3f.h:46
SbViewVolume
The SbViewVolume class is a viewing volume in 3D space.
Definition SbViewVolume.h:50
SoCamera::initClass
static void initClass(void)
Sets up initialization for data common to all instances of this class, like submitting necessary info...
Definition SoCamera.cpp:379
SoCamera::scaleHeight
virtual void scaleHeight(float scalefactor)=0
SoCamera::getViewVolume
SbViewVolume getViewVolume(const SbViewportRegion &vp, SbViewportRegion &resultvp, const SbMatrix &mm=SbMatrix::identity()) const
Definition SoCamera.cpp:433
SoCamera::viewBoundingBox
virtual void viewBoundingBox(const SbBox3f &box, float aspect, float slack)=0
SoCamera::SoCamera
SoCamera(void)
Definition SoCamera.cpp:342
SoOrthographicCamera::SoOrthographicCamera
SoOrthographicCamera(void)
Definition SoOrthographicCamera.cpp:110
SoOrthographicCamera::height
SoSFFloat height
Definition SoOrthographicCamera.h:48
SoSFFloat
The SoSFFloat class is a container for a floating point value.
Definition SoSFFloat.h:39
SO_NODE_HEADER
#define SO_NODE_HEADER(classname)
Definition Coin_macros.dox:50