-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from pariterre/dev
Finalized Rotation group
- Loading branch information
Showing
54 changed files
with
681 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include <vector> | ||
#include "ezc3d_all.h" | ||
#include <iostream> | ||
#include <vector> | ||
|
||
int main() | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
/// | ||
|
||
#include "Channel.h" | ||
#include <vector> | ||
|
||
/// | ||
/// \brief Subframe for the analogous data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
#ifndef DATA_START_INFO_H | ||
#define DATA_START_INFO_H | ||
/// | ||
/// \file DataStartInfo.h | ||
/// \brief Declaration of DataStartInfo class | ||
/// \author Pariterre | ||
/// \version 1.0 | ||
/// \date October 17th, 2018 | ||
/// | ||
|
||
#include "ezc3dNamespace.h" | ||
#include <sstream> | ||
|
||
/// | ||
/// \brief Placeholder for stocking the position and value of data start | ||
/// | ||
class EZC3D_API ezc3d::DataStartInfo{ | ||
|
||
protected: | ||
bool m_hasPointDataStart = false; ///< If the point data start is set | ||
std::streampos m_pointDataStart; ///< The data start for the points | ||
|
||
public: | ||
/// | ||
/// \brief Returns if the point data start is set | ||
/// \return If the point data start is set | ||
/// | ||
bool hasPointDataStart() const; | ||
|
||
/// | ||
/// \brief The point data start | ||
/// \param value The starting position of the points data in the c3d file | ||
/// | ||
void setPointDataStart(const std::streampos& value); | ||
|
||
/// | ||
/// \brief Get the point data start | ||
/// \return The point data start | ||
/// | ||
const std::streampos& pointDataStart() const; | ||
|
||
|
||
protected: | ||
bool m_hasHeaderPointDataStart = false; ///< If the point data start is set for the header | ||
std::streampos m_headerPointDataStart; ///< Position in the c3d to put the point start start in the header | ||
DATA_TYPE m_headerPointDataStartSize = DATA_TYPE::WORD; ///< The size of the value in the c3d file | ||
|
||
public: | ||
/// | ||
/// \brief Returns if the point data start is set for the header | ||
/// \return If the point data start is set for the header | ||
/// | ||
bool hasHeaderPointDataStart() const; | ||
|
||
/// | ||
/// \brief The position in the c3d where to put the header point data start | ||
/// \param position | ||
/// | ||
void setHeaderPositionInC3dForPointDataStart(const std::streampos& position); | ||
|
||
/// | ||
/// \brief Get the position in the c3d to put the point start start in the header | ||
/// \return The position in the c3d to put the point start start in the header | ||
/// | ||
const std::streampos& headerPointDataStart() const; | ||
|
||
/// | ||
/// \brief Get the size of the value in the c3d file header | ||
/// \return The size of the value in the c3d file header | ||
/// | ||
DATA_TYPE headerPointDataStartSize() const; | ||
|
||
protected: | ||
bool m_hasParameterPointDataStart = false; ///< If the point data start is set for the parameters | ||
std::streampos m_parameterPointDataStart; ///< Position in the c3d to put the point start start in the parameters | ||
DATA_TYPE m_parameterPointDataStartSize = DATA_TYPE::BYTE; ///< The size of the value in the c3d file | ||
|
||
public: | ||
/// | ||
/// \brief Returns if the point data start is set for the parameters | ||
/// \return If the point data start is set for the parameters | ||
/// | ||
bool hasParameterPointDataStart() const; | ||
/// | ||
/// \brief The position in the c3d where to put the parameter point data start | ||
/// \param position | ||
/// | ||
void setParameterPositionInC3dForPointDataStart(const std::streampos& position); | ||
|
||
/// | ||
/// \brief Get the position in the c3d to put the point start start in the parameters | ||
/// \return The position in the c3d to put the point start start in the parameters | ||
/// | ||
const std::streampos& parameterPointDataStart() const; | ||
|
||
/// | ||
/// \brief Get the size of the value in the c3d file parameter | ||
/// \return The size of the value in the c3d file parameter | ||
/// | ||
DATA_TYPE parameterPointDataStartSize() const; | ||
|
||
protected: | ||
bool m_hasRotationDataStart = false; ///< If the rotation data start is set | ||
std::streampos m_rotationsDataStart; ///< The data start for the rotations | ||
|
||
public: | ||
/// | ||
/// \brief Returns if the rotations data start is set | ||
/// \return If the rotations data start is set | ||
/// | ||
bool hasRotationsDataStart() const; | ||
|
||
/// | ||
/// \brief The rotations data start | ||
/// \param value The starting position of the rotations data in the c3d file | ||
/// | ||
void setRotationsDataStart(const std::streampos& value); | ||
|
||
/// | ||
/// \brief Get the rotations data start | ||
/// \return The rotations data start | ||
/// | ||
const std::streampos& rotationsDataStart() const; | ||
|
||
protected: | ||
bool m_hasParameterRotationsDataStart = false; ///< If the rotations data start is set for the parameters | ||
std::streampos m_parameterRotationsDataStart; ///< Position in the c3d to put the rotations start start in the parameters | ||
DATA_TYPE m_parameterRotationsDataStartSize = DATA_TYPE::BYTE; ///< The size of the value in the c3d file | ||
|
||
public: | ||
/// | ||
/// \brief Returns if the rotations data start is set for the parameters | ||
/// \return If the rotations data start is set for the parameters | ||
/// | ||
bool hasParameterRotationsDataStart() const; | ||
|
||
/// | ||
/// \brief The position in the c3d where to put the parameter rotations data start | ||
/// \param position | ||
/// | ||
void setParameterPositionInC3dForRotationsDataStart(const std::streampos& position); | ||
|
||
/// | ||
/// \brief Get the position in the c3d to put the rotations start start in the parameters | ||
/// \return The position in the c3d to put the rotations start start in the parameters | ||
/// | ||
const std::streampos& parameterRotationsDataStart() const; | ||
|
||
/// | ||
/// \brief Get the size of the value in the c3d file parameter | ||
/// \return The size of the value in the c3d file parameter | ||
/// | ||
DATA_TYPE parameterRotationsDataStartSize() const; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.