VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgConvertUtils.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
8 #include <vrvOsg/vrvOsg.h>
9 
15 
16 #include <osg/Vec3>
17 #include <osg/Vec4>
18 #include <osg/Matrix>
19 #include <osg/BoundingBox>
20 
21 namespace makVrv
22 {
25  {
26  private:
28  DtOsgConvertUtils() = delete;
29 
31  DtOsgConvertUtils(const DtOsgConvertUtils& rhs) = delete;
32 
34  DtOsgConvertUtils& operator=(const DtOsgConvertUtils& rhs) = delete;
35 
37  virtual ~DtOsgConvertUtils() = delete;
38 
39  public:
40  static DtColorValue OsgVec4ToColorValue(const osg::Vec4& vOsgVec4);
41 
42  static Vector4_64 OsgVec4ToVec4(const osg::Vec4d& vOsgVec4);
43  static Vector3_64 OsgVec4ToVec3(const osg::Vec4d& vOsgVec4);
44  static Vector3_64 OsgVec3ToVec3(const osg::Vec3d& vOsgVec3);
45  static Vector3_32 OsgVec3ToVec3(const osg::Vec3f& vOsgVec3);
46 
47  static osg::Vec3f Vec3ToOsgVec3f(const Vector3_32& vec3);
48  static osg::Vec3d Vec3ToOsgVec3d(const Vector3_32& vec3);
49 
50  static Matrix4_64 OsgMatrixToMatrix(const osg::Matrixd& matrix);
51  static Matrix4_32 OsgMatrixToMatrix(const osg::Matrixf& matrix);
52 
53  static AxisAlignedBoundingBox_32 OsgBBToBB(const osg::BoundingBoxd& osgBB);
54  };
55 }
DtColorValue class.
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
4 dimensional vector
3 dimensional vector
contains some utility functions for converting between osg and VR-Vantage types
Definition: DtOsgConvertUtils.h:24
Template for 32/64 bit Axis Aligned bounding boxesnot virtual because its stored as is on the GPU...
Definition: DtAxisAlignedBoundingBox.h:27
Axis Aligned Bounding Box class.
4 dimensional vector
Definition: DtMath.h:22
#define vec3
Definition: DtGlslToDtDefines.h:12
Contains DLL export macros.
Template for Color values in [0,1] range.
Definition: DtColorValue.h:20
4 dimensional matrix

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)