VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtAggregateExtentVisualizer.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2010 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: DtAggregateExtentVisualizer.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *********************************************************************/
00011 
00012 #pragma once
00013 
00014 #include <vrvCore/vrvCore.h>
00015 #include <vrvCore/DtStateVisualizer.h>
00016 #include <matrix/vlVector.h>
00017 
00018 namespace makVrv
00019 {
00020    class DtModelAgent;
00021 
00024    class DT_DLL_VRVCORE DtAggregateExtentVisualizer : public DtStateVisualizer
00025    {
00026    public:
00028       DtAggregateExtentVisualizer(DtBaseConnection& simulation, DtStateListener& listener,
00029          int modelSet);
00030 
00032       virtual ~DtAggregateExtentVisualizer();
00033 
00035       virtual void setDimensions(const DtVector& dim);
00036 
00038       virtual void setColor(float r,float g,float b,float a);
00039 
00041       virtual void setShowExtents(bool);
00042 
00044       virtual void setShowOnlyIfSelected(bool);
00045       bool showOnlyIfSelected() const
00046       {
00047          return myShowOnlyIfSelected;
00048       }
00049 
00050       virtual void setVisible(bool yesNo);
00051 
00053       virtual void setSelected(bool);
00054 
00055       virtual void setLockUpdates(bool b);
00056       bool updatesLocked() const;
00057 
00058    protected:
00059       virtual void createModelAgents();
00060 
00061       virtual void destroyModelAgents();
00062 
00063       virtual void setModelDefinitionForAgents();
00064 
00066       virtual DtModelAgent* createExtentModelAgent() = 0;
00067 
00068    protected:
00069       DtModelAgent* myAggregateExtentModelAgent;
00070       float myColor[4];
00071       DtVector myDimensions;
00072       bool     myShowOnlyIfSelected;
00073 
00074       bool myLockUpdates;
00075    };
00076 }
00077 

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)