21 #ifndef PT_COMPLETE_TRAJECTORY_H
22 #define PT_COMPLETE_TRAJECTORY_H
73 Illegal_argument,
"Cannot write trajectory: body or face"
74 " direction never initialized.");
76 ofs << std::scientific;
78 <<
" " << std::setw(16) << std::setprecision(8) << value.body_dir
79 <<
" " << value.face_dir
80 <<
" 1.0" << std::endl;
88 ofs << Vector(6, -1.0) <<
" " << 0.0 << std::endl;
100 ofs <<
height <<
" " << width <<
" " << girth << std::endl;
double get_initial_direction(Trajectory &traj, size_t frame)
Gets default body direction at frame.
Definition: pt_complete_trajectory.cpp:118
Int_matrix::Value_type max(const Int_matrix &mat)
Return the maximum value in this matrix.
Definition: l_int_matrix.h:1397
Represents an element of a trajectory of a particular entity.
Definition: tracking_trajectory.h:61
Generic_trajectory_element< Complete_state > Trajectory_element
Definition: pt_complete_trajectory.h:41
void update_direction(Trajectory &traj, size_t frame, bool ow)
Set non-initialized direction in frame to default value.
Definition: pt_complete_trajectory.cpp:137
height
Definition: APPgetLargeConnectedEdges.m:33
void write(std::ofstream &ofs) const
Writes this element to a stream.
Definition: tracking_trajectory.h:79
#define IFT(a, ex, msg)
Definition: l_exception.h:101
Represents a set of trajectories; it is a map from entity to trajectory.
Definition: tracking_trajectory.h:53
Generic_trajectory< Complete_state > Trajectory
Definition: pt_complete_trajectory.h:42
bool parse(const std::string &line)
Reads an element from a line of a file.
Definition: tracking_trajectory.h:70
static void write_invalid(std::ofstream &ofs)
Writes this element to a stream.
Definition: tracking_trajectory.h:88
bool parse_header(const std::string &)
Parses the header information from a header line.
Definition: tracking_trajectory.h:145
void write_header(std::ofstream &) const
Writes the header of a trajectory. Does nothing by default. Please specialize.
Definition: tracking_trajectory.h:154
Generic_trajectory_map< Complete_state > Trajectory_map
Definition: pt_complete_trajectory.h:43
Support for error handling exception classes in libKJB.
void initialize_directions(Trajectory &traj, size_t st=0, size_t et=0, bool ow=false)
Set non-initialized directions to default values.
Definition: pt_complete_trajectory.cpp:187
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...