![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2010 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: Dt3DAggregateExtentVisualizer.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *********************************************************************/ 00011 00012 #pragma once 00013 #include <vrvCore/DtAggregateExtentVisualizer.h> 00014 00015 namespace makVrv 00016 { 00017 class DtAttachableCuboidModelAgent; 00018 class DtScribeBoxModelAgent; 00019 00023 class DT_DLL_VRVCORE Dt3DAggregateExtentVisualizer : 00024 public DtAggregateExtentVisualizer 00025 { 00026 public: 00028 Dt3DAggregateExtentVisualizer(DtBaseConnection& simulation, 00029 DtStateListener& listener, int modelSet); 00030 00032 virtual ~Dt3DAggregateExtentVisualizer(); 00033 00036 virtual void setDimensions(const DtVector& dim); 00037 00039 virtual void setColor(float r,float g,float b,float a); 00040 00042 virtual const DtStateVisualizer::TypeInfo& typeInfo() const; 00043 00045 static const DtStateVisualizer::TypeInfo& theTypeInfo(); 00046 00047 protected: 00049 virtual DtModelAgent* createExtentModelAgent(); 00050 00052 virtual void createModelAgents(); 00053 00055 virtual void destroyModelAgents(); 00056 00058 virtual void setVisualizerDefinition(const DtVisualizerDefinition& visDef); 00059 00060 protected: 00061 DtAttachableCuboidModelAgent* myCuboidAgent; 00062 DtScribeBoxModelAgent* myScribeBox; 00063 double myScribeWidth; 00064 bool myScribeOccluded; 00065 bool myScribeEnabled; 00066 bool mySmoothScribeLine; 00067 }; 00068 00069 typedef DtStateVisualizerCreatorTemplate<Dt3DAggregateExtentVisualizer> 00070 Dt3DAggregateExtentVisualizerCreator; 00071 }