2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADAFramework.
6
Licensed under the MIT Open Source License,
7
for details please see LICENSE file or the website
8
http://www.opensource.org/licenses/mit-license.php
11
#ifndef __COLLADAFW_ANNOTATE_H__
12
#define __COLLADAFW_ANNOTATE_H__
14
#include "COLLADAFWPrerequisites.h"
15
#include "COLLADAFWValueType.h"
22
Adds a strongly typed annotation remark to the parent object.
24
Annotations represent objects of the form SYMBOL = VALUE, where SYMBOL is a user-defined
25
identifier and VALUE is a strongly typed value. Annotations communicate metainformation from
26
the Effect Runtime to the application only and are not interpreted by the COLLADA document.
32
/** The text string name of this element that represents the SYMBOL in an object of
33
the form SYMBOL = VALUE. Required. */
36
/** A strongly typed value that represents the VALUE in an object of the form
37
SYMBOL = VALUE. Consists of a COLLADA type element that contains a value of that type.
38
Valid type elements are:
39
bool, bool2, bool3, bool4,
40
int, int2, int3, int4,
41
float, float2, float3, float4,
42
float2x2, float3x3, float4x4,
54
/** The text string name of this element that represents the SYMBOL in an object of
55
the form SYMBOL = VALUE. Required. */
56
const String getName () const { return mName; }
58
/** The text string name of this element that represents the SYMBOL in an object of
59
the form SYMBOL = VALUE. Required. */
60
void setName ( const String Name ) { mName = Name; }
62
/** A strongly typed value that represents the VALUE in an object of the form
63
SYMBOL = VALUE. Consists of a COLLADA type element that contains a value of that type.
64
Valid type elements are:
65
bool, bool2, bool3, bool4,
66
int, int2, int3, int4,
67
float, float2, float3, float4,
68
float2x2, float3x3, float4x4,
70
const ValueType getValue () const { return mValue; }
72
/** A strongly typed value that represents the VALUE in an object of the form
73
SYMBOL = VALUE. Consists of a COLLADA type element that contains a value of that type.
74
Valid type elements are:
75
bool, bool2, bool3, bool4,
76
int, int2, int3, int4,
77
float, float2, float3, float4,
78
float2x2, float3x3, float4x4,
80
void setValue ( const ValueType Value ) { mValue = Value; }
84
/** Disable default copy ctor. */
85
Annotate( const Annotate& pre );
87
/** Disable default assignment operator. */
88
const Annotate& operator= ( const Annotate& pre );
92
} // namespace COLLADAFW
94
#endif // __COLLADAFW_ANNOTATE_H__