AnimatLab
2
Test
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
OsgLine.h
1
// OsgLine.h: interface for the OsgLine class.
2
//
4
#pragma once
5
6
namespace
OsgAnimatSim
7
{
8
namespace
Environment
9
{
10
11
class
ANIMAT_OSG_PORT
OsgLine
12
{
13
protected
:
14
osg::Geometry* m_lpLinesGeom;
15
LineBase *m_lpLineBase;
16
osg::ref_ptr<osg::Vec3Array> m_aryLines;
17
float
fltA;
18
19
osg::Geometry *CreateLineGeometry();
20
21
virtual
void
SetThisLinePointers();
22
virtual
int
BuildLines(osg::Geometry *linesGeom);
23
24
public
:
25
OsgLine
();
26
virtual
~
OsgLine
();
27
28
virtual
void
CalculateForceVector(Attachment *lpPrim, Attachment *lpSec,
float
fltTension, CStdFPoint &oPrimPos, CStdFPoint &oSecPos, CStdFPoint &oPrimForce);
29
virtual
void
StepLineSimulation(
bool
bEnabled,
float
fltTension);
30
virtual
void
DrawLine();
31
};
32
33
}
// Visualization
34
}
//OsgAnimatSim
OsgAnimatSim::Environment::OsgLine
Definition:
OsgLine.h:11
OsgAnimatSim
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Definition:
OsgAttachment.cpp:23
Libraries
OsgAnimatSim
OsgLine.h
Generated on Tue Sep 29 2015 07:07:17 for AnimatLab by
1.8.10