VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvCore
DtModelAgent.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 DtModelAgent_H_
9
#define DtModelAgent_H_
10
11
#include <
vrvCore/DtAgent.h
>
12
13
namespace
makVrv
14
{
15
16
class
DtModel;
17
19
class
DT_DLL_VRVCORE
DtModelAgent
:
public
DtAgent
20
{
21
public
:
23
DtModelAgent
();
24
26
static
DtModelAgent
* create(
makVrv::DtAgentManagerInterface
& sceneInterface,
bool
bDistribute =
true
);
27
29
virtual
~
DtModelAgent
();
30
34
DtModel
* findObject();
35
const
DtModel
* findObject()
const
;
36
37
//Set the model definition to be used to create the model instance.
38
virtual
void
setModelDefinition(
const
std::string& definitionName) = 0;
39
40
//Save the model contents to a file.
41
virtual
void
saveModelToFile(
const
std::string& filename) = 0;
42
44
virtual
void
setVisible(
bool
isVisible) = 0;
45
46
47
virtual
void
setContributesToBound(
bool
trueOrFalse) = 0;
48
49
50
virtual
void
enableColorBlending(
bool
b) = 0;
51
52
53
virtual
void
setBlendColor(
float
r,
float
g,
float
b,
float
a) = 0;
54
55
56
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a) = 0;
57
58
59
protected
:
60
virtual
DtModel
* findObjectAsDtModel() = 0;
61
};
62
63
}
64
65
#endif
66
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)