Tracore
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
core::ObjectData Class Reference

#include <ObjectData.h>

Inheritance diagram for core::ObjectData:
core::ObjectDataMap core::Tracklet

Public Member Functions

 ObjectData ()
 
 ObjectData (std::size_t frame_index)
 
std::size_t GetFrameIndex () const
 
bool IsVirtual () const
 
virtual double CompareTo (ObjectData *obj)
 

Protected Member Functions

virtual void Print (std::ostream &os) const
 

Protected Attributes

std::size_t frame_index_
 

Friends

std::ostream & operator<< (std::ostream &os, const ObjectData &obj)
 

Detailed Description

Base class for all detected objects. Stores the corresponding frame index.

Constructor & Destructor Documentation

core::ObjectData::ObjectData ( )

Creates a new empty ObjectData (e.g. for virtual objects)

core::ObjectData::ObjectData ( std::size_t  frame_index)

Creates a new ObjectData with the given frame index

Parameters
frame_indexthe index in which the object was detected

Member Function Documentation

double core::ObjectData::CompareTo ( ObjectData obj)
virtual

Compares this object with the given object.

Parameters
objA pointer to the object to compare this object to
Returns
A double value indicating the comparison result

Reimplemented in core::ObjectDataMap, and core::Tracklet.

std::size_t core::ObjectData::GetFrameIndex ( ) const

Getter for the frame index

Returns
The frame index
bool core::ObjectData::IsVirtual ( ) const

Is this node considered a virtual node

Returns
Whether this node is virtual
void core::ObjectData::Print ( std::ostream &  os) const
protectedvirtual

Used in the << operator

Parameters
osThe stream to write to

Reimplemented in core::ObjectDataMap.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const ObjectData obj 
)
friend

Overrides the << operator for easy output. Calls the print method.

Parameters
osThe stream to write to
objThe object to write into the stream
Returns
The stream written to

Member Data Documentation

std::size_t core::ObjectData::frame_index_
protected

The frame the object was detected in


The documentation for this class was generated from the following files: