18 #ifndef _VISUAL_PRIVATE_HH_
19 #define _VISUAL_PRIVATE_HH_
26 #include <boost/function.hpp>
48 class SkeletonInstance;
79 geomSize(ignition::math::Vector3d::One),
98 public: sdf::ElementPtr
sdf;
132 public: std::list<DynamicLines*>
lines;
135 public: std::list< std::pair<DynamicLines*, unsigned int> >
lineVertices;
168 public: ignition::math::Vector3d
scale;
bool inheritTransparency
True to inherit transparency from parent.
Definition: VisualPrivate.hh:208
bool visible
True if rendered.
Definition: VisualPrivate.hh:120
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
Ogre::StaticGeometry * staticGeom
Pointer to the static geometry.
Definition: VisualPrivate.hh:117
ScenePtr scene
Pointer to the visual's scene.
Definition: VisualPrivate.hh:89
Private data for the Visual class.
Definition: VisualPrivate.hh:58
bool castShadows
True if visual casts shadows.
Definition: VisualPrivate.hh:110
bool wireframe
True if wireframe mode is enabled.
Definition: VisualPrivate.hh:211
Ogre::SkeletonInstance * skeleton
The visual's skeleton, used only for person simulation.
Definition: VisualPrivate.hh:126
bool lighting
True if lighting will be applied to this visual.
Definition: VisualPrivate.hh:171
std::vector< VisualPtr > children
Children visuals.
Definition: VisualPrivate.hh:141
ignition::math::Vector3d scale
Scale of visual.
Definition: VisualPrivate.hh:168
std::string name
Name of the visual.
Definition: VisualPrivate.hh:138
Ogre::AnimationState * animState
Used to animate the visual.
Definition: VisualPrivate.hh:144
std::vector< VisualPluginPtr > plugins
A list of visual plugins.
Definition: VisualPrivate.hh:174
Ogre::RibbonTrail * ribbonTrail
The ribbon train created by the visual.
Definition: VisualPrivate.hh:123
Visual::VisualType type
type
Definition: VisualPrivate.hh:198
common::Color specular
Specular color of the visual.
Definition: VisualPrivate.hh:189
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:112
float transparency
Transparency value.
Definition: VisualPrivate.hh:107
VisualType
Type of visual.
Definition: Visual.hh:63
uint32_t visibilityFlags
Visibility flags of the visual.
Definition: VisualPrivate.hh:195
static uint32_t visualIdCount
Counter used to create unique ids.
Definition: VisualPrivate.hh:165
A renderable object.
Definition: Visual.hh:59
event::ConnectionPtr preRenderConnection
Connection for the pre render event.
Definition: VisualPrivate.hh:129
VisualPtr parent
Parent visual.
Definition: VisualPrivate.hh:95
std::list< DynamicLines * > lines
List of all the lines created.
Definition: VisualPrivate.hh:132
std::string myMaterialName
The unique name for the visual's material.
Definition: VisualPrivate.hh:101
std::string origMaterialName
The original name for the visual's material.
Definition: VisualPrivate.hh:104
WireBox * boundingBox
A wire frame bounding box.
Definition: VisualPrivate.hh:159
bool useRTShader
True to use RT shader system.
Definition: VisualPrivate.hh:153
std::string meshName
The visual's mesh name.
Definition: VisualPrivate.hh:177
ignition::math::Vector3d geomSize
Size of attached geometry.
Definition: VisualPrivate.hh:205
common::Color ambient
Ambient color of the visual.
Definition: VisualPrivate.hh:183
#define GZ_VISIBILITY_ALL
Render everything visibility mask.
Definition: RenderTypes.hh:26
sdf::ElementPtr sdf
The SDF element for the visual.
Definition: VisualPrivate.hh:98
boost::function< void()> onAnimationComplete
Callback for the animation complete event.
Definition: VisualPrivate.hh:150
#define NULL
Definition: CommonTypes.hh:31
Defines a color.
Definition: Color.hh:36
Ogre::SceneNode * sceneNode
Pointer to the visual's scene node in Ogre.
Definition: VisualPrivate.hh:92
VisualPrivate()
Constructor.
Definition: VisualPrivate.hh:61
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:80
std::string subMeshName
The visual's submesh name.
Definition: VisualPrivate.hh:180
bool isStatic
True if the visual is static, which allows Ogre to improve performance.
Definition: VisualPrivate.hh:114
int32_t layer
Index of the layer to which this visual belongs.
Definition: VisualPrivate.hh:202
Draws a wireframe box.
Definition: WireBox.hh:36
virtual ~VisualPrivate()=default
Default destructor.
common::Time prevAnimTime
Time of the previous animation step.
Definition: VisualPrivate.hh:147
common::Color emissive
Emissive color of the visual.
Definition: VisualPrivate.hh:192
common::Color diffuse
Diffuse color of the visual.
Definition: VisualPrivate.hh:186
std::list< std::pair< DynamicLines *, unsigned int > > lineVertices
Lines and their vertices connected to this visual.
Definition: VisualPrivate.hh:135
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:44
bool initialized
True if initialized.
Definition: VisualPrivate.hh:156
uint32_t id
Unique id of this visual.
Definition: VisualPrivate.hh:162