From bf317d9ceaf6707c449fca8cad67f62a0aaf1e89 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 22 Apr 2005 13:47:54 +0000 Subject: [PATCH] Removed ViewPoint.h and .cpp from the ive plugin --- src/osgPlugins/ive/Group.cpp | 1 - src/osgPlugins/ive/ViewPoint.cpp | 52 -------------------------------- src/osgPlugins/ive/ViewPoint.h | 15 --------- 3 files changed, 68 deletions(-) delete mode 100644 src/osgPlugins/ive/ViewPoint.cpp delete mode 100644 src/osgPlugins/ive/ViewPoint.h diff --git a/src/osgPlugins/ive/Group.cpp b/src/osgPlugins/ive/Group.cpp index 171c45402..306136b18 100644 --- a/src/osgPlugins/ive/Group.cpp +++ b/src/osgPlugins/ive/Group.cpp @@ -21,7 +21,6 @@ #include "Billboard.h" #include "Sequence.h" #include "LOD.h" -//#include "ViewPoint.h" #include "PositionAttitudeTransform.h" #include "Transform.h" diff --git a/src/osgPlugins/ive/ViewPoint.cpp b/src/osgPlugins/ive/ViewPoint.cpp deleted file mode 100644 index 62c077184..000000000 --- a/src/osgPlugins/ive/ViewPoint.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/********************************************************************** - * - * FILE: ViewPoint.cpp - * - * DESCRIPTION: Read/Write osg::ViewPoint in binary format to disk. - * - * CREATED BY: Auto generated by iveGenerate - * and later modified by Rune Schmidt Jensen. - * - * HISTORY: Created 24.3.2003 - * - * Copyright 2003 VR-C - **********************************************************************/ - -#include "Exception.h" -#include "ViewPoint.h" -#include "PositionAttitudeTransform.h" - -using namespace ive; - -void ViewPoint::write(DataOutputStream* out){ - // Write ViewPoint's identification. - out->writeInt(IVEVIEWPOINT); - // If the osg class is inherited by any other class we should also write this to file. - osg::PositionAttitudeTransform* pat = dynamic_cast(this); - if(pat){ - ((ive::PositionAttitudeTransform*)(pat))->write(out); - } - else - throw Exception("ViewPoint::write(): Could not cast this osg::ViewPoint to an osg::PositionAttitudeTransform."); - // Write ViewPoint's properties. -} - -void ViewPoint::read(DataInputStream* in){ - // Peek on ViewPoint's identification. - int id = in->peekInt(); - if(id == IVEVIEWPOINT){ - // Read ViewPoint's identification. - id = in->readInt(); - // If the osg class is inherited by any other class we should also read this from file. - osg::PositionAttitudeTransform* pat = dynamic_cast(this); - if(pat){ - ((ive::PositionAttitudeTransform*)(pat))->read(in); - } - else - throw Exception("ViewPoint::read(): Could not cast this osg::ViewPoint to an osg::PositionAttitudeTransform."); - // Read ViewPoint's properties - } - else{ - throw Exception("ViewPoint::read(): Expected ViewPoint identification."); - } -} diff --git a/src/osgPlugins/ive/ViewPoint.h b/src/osgPlugins/ive/ViewPoint.h deleted file mode 100644 index 6d2da21b2..000000000 --- a/src/osgPlugins/ive/ViewPoint.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef IVE_VIEWPOINT -#define IVE_VIEWPOINT 1 - -#include -#include - -namespace ive{ -class ViewPoint : public osgfIVE::ViewPoint, public ReadWrite { -public: - void write(DataOutputStream* out); - void read(DataInputStream* in); -}; -} - -#endif