VR-Forces 4.0.4 Class Documentation
include/vrfGuiCore/DtEntityCreationData.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtEntityCreationData.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrfGuiCore/vrfGuiCore.h>
00017 
00018 #include <matrix/vlVector.h>
00019 #include <vlpi/entityType.h>
00020 #include <vlpi/appearance.h>
00021 
00022 namespace makVrf
00023 {
00024    class DT_DLL_VRFGUICORE DtEntityCreationData
00025    {
00026    public:
00027       DtEntityCreationData(const DtEntityType& entType, int force, const DtVector& location,
00028          const std::string& name = "", const std::string& label = "", double heading = 0.,
00029          const DtAppearance& appearance = DtAppearance::nullAppearance(), bool clampToGround = true,
00030          bool createSubordinates = true, int requestId = -1, const std::string& initialFormation = "",
00031          int aggregateState = 0)
00032       : myName(name)
00033       , myLabel(label)
00034       , myEntityType(entType)
00035       , myForce(force)
00036       , myLocation(location)
00037       , myHeading(heading)
00038       , myAppearance(appearance)
00039       , myClamp(clampToGround)
00040       , myCreateSubordinates(createSubordinates)
00041       , myRequestId(requestId)
00042       , myInitialFormation(initialFormation)
00043       , myAggregateState(aggregateState)
00044       {
00045       }
00046 
00047       DtEntityCreationData(const DtEntityCreationData& orig)
00048       : myName(orig.myName)
00049       , myLabel(orig.myLabel)
00050       , myEntityType(orig.myEntityType)
00051       , myForce(orig.myForce)
00052       , myLocation(orig.myLocation)
00053       , myHeading(orig.myHeading)
00054       , myAppearance(orig.myAppearance)
00055       , myClamp(orig.myClamp)
00056       , myCreateSubordinates(orig.myCreateSubordinates)
00057       , myRequestId(orig.myRequestId)
00058       , myInitialFormation(orig.myInitialFormation)
00059       , myAggregateState(orig.myAggregateState)
00060       {
00061       }
00062 
00063       void setName(const std::string& n)
00064       {
00065          myName = n;
00066       }
00067 
00068       const std::string& name() const
00069       {
00070          return myName;
00071       }
00072 
00073       void setLabel(const std::string& l)
00074       {
00075          myLabel = l;
00076       }
00077 
00078       const std::string& label() const
00079       {
00080          return myLabel;
00081       }
00082 
00083       void setEntityType(const DtEntityType& e)
00084       {
00085          myEntityType = e;
00086       }
00087 
00088       const DtEntityType& entityType() const
00089       {
00090          return myEntityType;
00091       }
00092 
00093       void setForce(int f)
00094       {
00095          myForce = f;
00096       }
00097 
00098       int force() const
00099       {
00100          return myForce;
00101       }
00102 
00103       void setLocation(const DtVector& v)
00104       {
00105          myLocation = v;
00106       }
00107 
00108       const DtVector& location() const
00109       {
00110          return myLocation;
00111       }
00112 
00113       void setHeading(double h)
00114       {
00115          myHeading = h;
00116       }
00117 
00118       double heading() const
00119       {
00120          return myHeading;
00121       }
00122 
00123       void setAppearance(const DtAppearance& app)
00124       {
00125          myAppearance = app;
00126       }
00127 
00128       const DtAppearance& appearance() const
00129       {
00130          return myAppearance;
00131       }
00132 
00133       void setClampToGround(bool b)
00134       {
00135          myClamp = b;
00136       }
00137 
00138       bool clampToGround() const
00139       {
00140          return myClamp;
00141       }
00142 
00143       void setCreateSubordinates(bool b)
00144       {
00145          myCreateSubordinates = b;
00146       }
00147 
00148       bool createSubordinates() const
00149       {
00150          return myCreateSubordinates;
00151       }
00152 
00153       void setRequestId(int i)
00154       {
00155          myRequestId = i;
00156       }
00157 
00158       int requestId() const
00159       {
00160          return myRequestId;
00161       }
00162 
00163       void setInitialFormation(const std::string& l)
00164       {
00165          myInitialFormation = l;
00166       }
00167 
00168       const std::string& initialFormation() const
00169       {
00170          return myInitialFormation;
00171       }
00172 
00173       void setAggregateState(int i)
00174       {
00175          myAggregateState = i;
00176       }
00177 
00178       int aggregateState() const
00179       {
00180          return myAggregateState;
00181       }
00182 
00183    protected:
00184       DtEntityType   myEntityType;
00185       int            myForce;
00186       DtVector       myLocation;
00187       std::string    myName;
00188       std::string    myLabel;
00189       double         myHeading;
00190       DtAppearance   myAppearance;
00191       bool           myClamp;
00192       bool           myCreateSubordinates;
00193       int            myRequestId;
00194 
00195       std::string    myInitialFormation;
00196       int            myAggregateState;
00197    };
00198 }

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)