VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
examples
exampleSimpleAgent
MyObjectAgent.hpp
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
7
8
#ifndef MyObjectAgent_H_
9
#define MyObjectAgent_H_
10
11
#include <
vrvCore/DtAgent.h
>
12
13
14
15
class
MyObject
;
16
18
class
MyObjectAgent
:
public
makVrv::DtAgent
19
{
20
public
:
22
MyObjectAgent
();
23
25
static
MyObjectAgent
*
create
(
makVrv::DtAgentManagerInterface
&
sceneInterface
,
bool
bDistribute =
true
);
26
28
virtual
~MyObjectAgent
();
29
33
MyObject
*
findObject
();
34
const
MyObject
*
findObject
()
const
;
35
36
// Load geometry and add it to the scene root.
37
virtual
void
createModel
() = 0;
38
39
// Rotate model by degrees.
40
virtual
void
setRotationAngle
(
double
rotationAngleInDegrees) = 0;
41
42
43
protected
:
44
virtual
MyObject
*
findObjectAsMyObject
() = 0;
45
};
46
47
48
49
#endif
50
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)