DART  6.7.3
dart::utils::FileInfoC3D Class Reference

#include <FileInfoC3D.hpp>

Public Member Functions

 FileInfoC3D ()
 
virtual ~FileInfoC3D ()
 
int getNumMarkers () const
 
int getNumFrames () const
 
double getFPS () const
 
Eigen::Vector3d getDataAt (int _frame, int _idx) const
 Note: not checking index range. More...
 
void addData (const std::vector< Eigen::Vector3d > &_data)
 
virtual bool loadFile (const char *)
 
virtual bool saveFile (const char *, int _start, int _end, double _sampleRate=1)
 Note: down sampling not implemented yet. More...
 

Protected Attributes

int mNumMarkers
 
int mNumFrames
 
std::vector< std::vector< Eigen::Vector3d > > mData
 
double mFPS
 
char mFileName [256]
 

Constructor & Destructor Documentation

◆ FileInfoC3D()

dart::utils::FileInfoC3D::FileInfoC3D ( )

◆ ~FileInfoC3D()

virtual dart::utils::FileInfoC3D::~FileInfoC3D ( )
inlinevirtual

Member Function Documentation

◆ addData()

void dart::utils::FileInfoC3D::addData ( const std::vector< Eigen::Vector3d > &  _data)
inline

◆ getDataAt()

Eigen::Vector3d dart::utils::FileInfoC3D::getDataAt ( int  _frame,
int  _idx 
) const
inline

Note: not checking index range.

◆ getFPS()

double dart::utils::FileInfoC3D::getFPS ( ) const
inline

◆ getNumFrames()

int dart::utils::FileInfoC3D::getNumFrames ( ) const
inline

◆ getNumMarkers()

int dart::utils::FileInfoC3D::getNumMarkers ( ) const
inline

◆ loadFile()

bool dart::utils::FileInfoC3D::loadFile ( const char *  _fName)
virtual

◆ saveFile()

bool dart::utils::FileInfoC3D::saveFile ( const char *  _fName,
int  _start,
int  _end,
double  _sampleRate = 1 
)
virtual

Note: down sampling not implemented yet.

Member Data Documentation

◆ mData

std::vector<std::vector<Eigen::Vector3d> > dart::utils::FileInfoC3D::mData
protected

◆ mFileName

char dart::utils::FileInfoC3D::mFileName[256]
protected

◆ mFPS

double dart::utils::FileInfoC3D::mFPS
protected

◆ mNumFrames

int dart::utils::FileInfoC3D::mNumFrames
protected

◆ mNumMarkers

int dart::utils::FileInfoC3D::mNumMarkers
protected