VR-Forces 4.0.4 Class Documentation
examples/exampleDistributedDraw/DtExampleDrawObject.h
Go to the documentation of this file.
00001 // /****************************************************************************** 
00002 // ** Copyright (c) 2008 MAK Technologies, Inc. 
00003 // ** All rights reserved. 
00004 // ******************************************************************************/ 
00005 // /****************************************************************************** 
00006 // ** $RCSfile: DtExampleDrawObject.h,v $ $Revision: 1.1 $ $State: Exp $ 
00007 // ******************************************************************************/ 
00008 
00011 
00012 #ifndef DtExampleDrawObject_H_
00013 #define DtExampleDrawObject_H_
00014 
00015 #include <vrvCore/DtDe.h>
00016 #include <vrvCore/DtUniqueID.h>
00017 
00018 #include <osg/Node>
00019 
00020 #include <string>
00021 
00022 namespace makVrv
00023 {
00026    class DtExampleDrawObject
00027    {
00028 
00029    public:
00030 
00032       DtExampleDrawObject(DtDe& de, DtUniqueID id);
00033 
00035       virtual ~DtExampleDrawObject();
00036 
00038       void drawSphere(double x, double y, double z, double r);
00039 
00041       void removeChildFromAllRoots();
00042 
00043    protected:
00044 
00045       DtDe& myDe;
00046 
00047       // Keep track of the node drawSphere creates so that it will be cleaned up properly
00048       osg::ref_ptr<osg::Node> myNode;
00049 
00050    };
00051 
00052 }
00053 
00054 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)