Select Git revision
-
Ulrich Kemloh authoredUlrich Kemloh authored
Frame.h 2.50 KiB
/**
* @headerfile Frame.h
* @author Ulrich Kemloh <kemlohulrich@gmail.com>
* @version 0.1
* Copyright (C) <2009-2010>
*
* @section LICENSE
* This file is part of OpenPedSim.
*
* OpenPedSim is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* OpenPedSim is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenPedSim. If not, see <http://www.gnu.org/licenses/>.
*
* @section DESCRIPTION
*
* @brief contains the collection of all
* pedestrians coordinates (trajectoryPoint) belonging to the same frame(i.e at the same time)
*
* Created on: 10.07.2009
*
*/
#ifndef Frame_H_
#define Frame_H_
class FrameElement;
class vtkPolyData;
class Frame {
public:
/// constructor
Frame(int id);
/// destructor
virtual ~Frame();
/// add an element to the Frame
void addElement(FrameElement* point);
///clear all Points in the frame
void clear();
///return the next object in the frame
FrameElement *getNextElement();
///compute the polydata.
///Call this after all elements have been added.
void ComputePolyData();
/// return the number of element in this frame
int getSize();
int GetID(){ return _id;}
/// reset the position of the cursor for reading the data
void resetCursor();
//vtkPolyData *GetSclarData();
/// return the 3D polydata set
vtkPolyData *GetPolyData3D();