29 void fillGPUReadyBuffer(std::vector<Vertex>& newVertexBuffer, std::vector<uint32_t>& newIndexBuffer);
35 void fillGPUReadyBuffer(std::vector<Vertex>& newVertexBuffer, std::vector<draw_call_t>& newDrawCalls);
81 return mMaximumCoordinateBounds - mMinimumCoordinateBounds;
89 return glm::vec2(mMinDataValue, mMaxDataValue);
100 std::vector<Poly> mPolyLineBuffer;
101 float mLastLoadingTime = 0.0F;
102 float mLastPreprocessTime = 0.0F;
104 glm::vec3 mMinimumCoordinateBounds = glm::vec3(1.0F, 1.0F, 1.0F);
105 glm::vec3 mMaximumCoordinateBounds = glm::vec3(0.0F, 0.0F, 0.0F);
106 float mMinDataValue = 1.0F;
107 float mMaxDataValue = 0.0F;
110 int mVertexCount = 0;
112 float mMaxLineLength = 0.0F;
113 float mMaxVertexAdjacentLineLength = 0.0F;
120 void preprocessLineData();
125 void initializeValues();
This class represents a Line-Dataset. It furthermore offers functionality to load data of an ....
Definition: Dataset.h:14
bool isFileOpen()
returns true if a file was loaded and the polyline buffer is full
Definition: Dataset.h:75
Dataset()
Definition: Dataset.cpp:24
int getLineCount()
Returns the amount of line individual line segments inside the file
Definition: Dataset.h:50
float getMaxLineLength()
returns the length of the longest line inside the dataset.
Definition: Dataset.h:65
std::string getName()
Returns the filename of the currently loaded dataset
Definition: Dataset.h:95
float getMaxVertexAdjacentLineLength()
returns the summed up length of the vertex with the longest adjacend lines.
Definition: Dataset.h:70
int getVertexCount()
Returns the amount of singular vertices in the dataset
Definition: Dataset.h:60
float getLastPreprocessTime()
Returns the time it took to preprocess the last file in seconds
Definition: Dataset.h:45
void importFromFile(std::string filename)
Load the data of the given ".obj" file into the cpu (mPolyLine-Buffer) and starts some preprocessing ...
Definition: Dataset.cpp:29
void fillGPUReadyBuffer(std::vector< Vertex > &newVertexBuffer, std::vector< uint32_t > &newIndexBuffer)
This function fills a vertex-list and an index list. the vertices at in between points of a line get ...
Definition: Dataset.cpp:164
int getPolylineCount()
Returns the amount of connected line segments
Definition: Dataset.h:55
glm::vec3 getDimensions()
returns the dimensions of the dataset
Definition: Dataset.h:80
glm::vec2 getDataBounds()
returns the min- and maximum
Definition: Dataset.h:88
float getLastLoadingTime()
Returns the time it took to import the last file in seconds
Definition: Dataset.h:40