AnimatLab
2
Test
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
VsMeshBase.h
1
// VsMesh.h: interface for the VsMesh class.
2
//
4
5
#if !defined(AFX_VSMESH_H__F74F0855_9701_4D03_82C4_EA3E5755910A__INCLUDED_)
6
#define AFX_VSMESH_H__F74F0855_9701_4D03_82C4_EA3E5755910A__INCLUDED_
7
8
#if _MSC_VER > 1000
9
#pragma once
10
#endif
11
12
namespace
VortexAnimatSim
13
{
14
namespace
Environment
15
{
16
namespace
Bodies
17
{
18
19
class
VORTEX_PORT
VsMeshBase
:
public
VortexAnimatSim::Environment::VsRigidBody
20
{
21
protected
:
22
Mesh *m_lpThisMesh;
23
osg::ref_ptr<osg::Node> m_osgBaseMeshNode;
24
osg::ref_ptr<osg::MatrixTransform> m_osgMeshNode;
25
26
virtual
void
SetThisPointers();
27
virtual
void
CreateGeometry();
28
virtual
void
CreateGraphicsGeometry();
29
virtual
void
CreatePhysicsGeometry();
30
virtual
void
LoadMeshNode();
31
virtual
void
ResizePhysicsGeometry();
32
virtual
void
CreateDefaultMesh();
33
virtual
void
CalculateEstimatedMassAndVolume();
34
35
public
:
36
VsMeshBase
();
37
virtual
~
VsMeshBase
();
38
39
//Override the set color method so we can disable it. We do not want to set the color for
40
//a mesh. Let the color be set in the mesh file.
41
//virtual void SetColor(float *vAmbient, float *vDiffuse, float *vSpecular, float fltShininess) {};
42
//virtual void SetTexture(std::string strTexture) {};
43
44
virtual
void
Physics_Resize();
45
};
46
47
}
//Bodies
48
}
// Environment
49
}
//VortexAnimatSim
50
51
#endif // !defined(AFX_VSMESH_H__F74F0855_9701_4D03_82C4_EA3E5755910A__INCLUDED_)
VortexAnimatSim::Environment::Bodies::VsMeshBase
Definition:
VsMeshBase.h:19
VortexAnimatSim::Environment::VsRigidBody
A common class for all rigid body data specific to vortex.
Definition:
VsRigidBody.h:55
VortexAnimatSim
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Definition:
MeshMinVertexDistanceVisitor.cpp:5
Libraries
VortexAnimatSim
VsMeshBase.h
Generated on Tue Sep 29 2015 07:07:23 for AnimatLab by
1.8.10