VR-Forces 4.0.4 Class Documentation
include/vrfmodel/humanEyepointController.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2006 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: humanEyepointController.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00013 
00014 #ifndef humanEyepointController_h
00015 #define humanEyepointController_h
00016 
00017 #include "vrfobjcore/cntrlCmpnt.h"
00018 #include "vrfmodel/vrfmodelDefines.h"
00019 #include <vlpi/disEnums.h>
00020 
00021 class DtOutputPortGroup;
00022 class DtOrientationOutputPort;
00023 class DtVectorOutputPort;
00024 class DtHumanStateRepository;
00025 
00034 class DT_DLL_vrfmodel DtHumanEyepointController : public DtControllerComponent
00035 {
00036 public:
00039    DtHumanEyepointController(const DtString& name, 
00040       DtVrfObject* owner,
00041       DtSimManager* simManager, 
00042       DtComponentDescriptor* desc = 0,
00043       DtReaderWriterRegistry* parentRegistry = 0);
00044 
00046    virtual ~DtHumanEyepointController();
00047 
00049    virtual bool init();
00050 
00053    virtual DtString type() const;
00054 
00055    virtual void tick();
00056 
00060    static DtSimComponent * creator(const DtString& name, 
00061       DtVrfObject* owner,
00062       DtSimManager* simManager, 
00063       DtComponentDescriptor* desc = 0,
00064       DtReaderWriterRegistry* parentRegistry = 0);
00065 
00066 private:
00068    DtHumanEyepointController();
00070    DtHumanEyepointController(const DtHumanEyepointController & orig);
00072    const DtHumanEyepointController & operator=(const DtHumanEyepointController & orig);
00073 
00074 protected:
00076    virtual bool createPortGroups();
00077 
00079    virtual bool createPorts();
00080 
00081 protected:
00083 
00084 
00085 
00086 
00087 
00088 
00089    DtOutputPortGroup* myEyepointOutputPortGroup;
00090 
00097    DtOrientationOutputPort* myOrientationOutputPort;
00098 
00104    DtVectorOutputPort* myPositionOutputPort;
00106 
00107    DtHumanStateRepository* myLifeformStateRep;
00108    DtLifeformState myLastState;
00109 
00110    int myLookDirection;
00111 };
00112 
00113 #endif

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)