AnimatLab
2
Test
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
VsLine.h
1
// VsLine.h: interface for the VsLine class.
2
//
4
#pragma once
5
6
namespace
VortexAnimatSim
7
{
8
namespace
Environment
9
{
10
11
class
VORTEX_PORT
VsLine
:
public
VsRigidBody
12
{
13
protected
:
14
LineBase *m_lpLineBase;
15
osg::ref_ptr<osg::Vec3Array> m_aryLines;
16
float
fltA;
17
18
osg::Geometry *CreateLineGeometry();
19
20
virtual
void
SetupGraphics();
21
22
//Remove the texture and culling options for the line.
23
virtual
void
SetTexture(std::string strTexture) {};
24
virtual
void
SetCulling() {};
25
virtual
void
CreateGraphicsGeometry();
26
virtual
void
CreatePhysicsGeometry();
27
virtual
int
BuildLines(osg::Geometry *linesGeom);
28
virtual
void
SetThisPointers();
29
virtual
void
DeleteGraphics();
30
31
public
:
32
VsLine
();
33
virtual
~
VsLine
();
34
35
virtual
void
Initialize() {};
36
virtual
void
CalculateForceVector(Attachment *lpPrim, Attachment *lpSec,
float
fltTension, CStdFPoint &oPrimPos, CStdFPoint &oSecPos, CStdFPoint &oPrimForce);
37
virtual
void
ResetSimulation();
38
virtual
void
AfterResetSimulation();
39
virtual
void
StepSimulation(
float
fltTension);
40
virtual
void
CreateParts();
41
virtual
void
DrawLine();
42
};
43
44
}
// Visualization
45
}
//VortexAnimatSim
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
VortexAnimatSim::Environment::VsLine
Definition:
VsLine.h:11
Libraries
VortexAnimatSim
VsLine.h
Generated on Tue Sep 29 2015 07:07:23 for AnimatLab by
1.8.10