VR-Forces 4.0.4 Class Documentation
include/vrvCore/Dt2DAggregateExtentVisualizer.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2010 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: Dt2DAggregateExtentVisualizer.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *********************************************************************/
00011 
00012 #pragma once
00013 
00014 #include <vrvCore/vrvCore.h>
00015 #include <vrvCore/DtAggregateExtentVisualizer.h>
00016 
00017 namespace makVrv
00018 {
00019    class DtOverlayRectangleModelAgent;
00020 
00024    class DT_DLL_VRVCORE Dt2DAggregateExtentVisualizer : 
00025       public DtAggregateExtentVisualizer
00026    {
00027    public:
00029       Dt2DAggregateExtentVisualizer(DtBaseConnection& simulation, 
00030          DtStateListener& listener, int modelSet);
00031 
00033       virtual ~Dt2DAggregateExtentVisualizer();
00034 
00037       virtual void setDimensions(const DtVector& dim);
00038 
00040       virtual void setColor(float r,float g,float b,float a);
00041 
00043       virtual void setLockUpdates(bool b);
00044 
00046       virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
00047 
00049       static const DtStateVisualizer::TypeInfo& theTypeInfo();
00050 
00051    protected:
00053       virtual DtModelAgent* createExtentModelAgent();
00054 
00056       virtual void createModelAgents();
00057 
00059       virtual void destroyModelAgents();
00060 
00063       virtual void setVisualizerDefinition(const DtVisualizerDefinition& visDef);
00064 
00065    protected:
00066       DtOverlayRectangleModelAgent* myPolygonAgent;
00067 
00068       float myOutlineWidth;
00069       bool myFill;
00070    };
00071 
00072    typedef DtStateVisualizerCreatorTemplate<Dt2DAggregateExtentVisualizer>
00073       Dt2DAggregateExtentVisualizerCreator;
00074 }

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)