VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
simObjectFactory.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: objFactory.h,v $ $Revision: 1.12 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 #ifndef DtSimObjectFactory_H_
19 #define DtSimObjectFactory_H_
20 
21 #ifdef WIN32
22 
23 
24 
25 
26 #pragma warning( push )
27 #pragma warning( disable : 4786 )
28 #endif
29 
30 #include <vlutil/vlHashlist.h>
31 #include <vrfExtProtocol/objectType.h>
32 #include <vlpi/appearance.h>
33 #include "vrfutil/vertexList.h"
34 #include <vl/globalObjectDesignator.h>
35 
38 class DtVrfObjectManager;
39 class DtVrfObject;
40 class DtReflectedObject;
41 
42 typedef DtVrfObject * (*DtSimObjectCreatorFcn)(
43  const DtObjectType& objectType,
44  DtVrfObjectManager * simObjectManager,
45  bool createLocalObject,
46  bool publishLocalObject,
47  const DtEntityIdentifier& objectIdentifier,
48  const DtGlobalObjectDesignator* globalId,
49  DtReflectedObject* reflectedObject,
50  const DtString & objectName,
51  const DtString & objectLabel,
52  DtForceType forceType,
53  const DtList* vertices,
54  const DtTaitBryan* orientation,
55  bool projection,
56  bool closedFigure,
57  const DtAppearance& appearance,
58  const DtString & readerWriterName,
59  DtReaderWriterRegistry * registry);
60 
68 class DT_DLL_vrfobjcore DtSimObjectFactory : public DtHashlist
69 {
70 public:
73 
76 
78  const DtSimObjectFactory& operator=(const DtSimObjectFactory& orig);
79 
81  virtual ~DtSimObjectFactory();
82 
84  virtual void addCreatorFcn(const DtString& type,
86 
87  virtual DtVrfObject * createSimObject(
88  const DtObjectType& objectType,
89  DtVrfObjectManager * simObjectManager,
90  const DtString & classType,
91  bool createLocalObject = true,
92  bool publishLocalObject = true,
93  const DtEntityIdentifier& objectIdentifier = DtEntityIdentifier::nullId(),
94  const DtGlobalObjectDesignator* globalId = NULL,
95  DtReflectedObject* reflectedObject = NULL,
96  const DtString & objectName = DtString::nullString(),
97  const DtString & objectLabel = DtString::nullString(),
98  DtForceType forceType = DtForceOther,
99  const DtList* vertices = NULL,
100  const DtTaitBryan* orientation = NULL,
101  bool projection = false,
102  bool closedFigure = false,
103  const DtAppearance& appearance = DtAppearance::nullAppearance(),
104  const DtString & readerWriterName = DtString::nullString(),
105  DtReaderWriterRegistry * registry = 0);
106 
107  static DtSimObjectFactory* create();
108 };
109 
110 #ifdef WIN32
111 #pragma warning( pop )
112 #endif
113 
114 #endif
115 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)