
Total SUU Webserver Pagehits by Month
Download this file:
This visualization is the total page hits for
a month for the selected pages.
This visualization is fairly easy to do. I have the data in the monthDay.txt
file. In the file the amount the page was hit is before the page name. Here
is some code on how I did it.
vtkCubeSource *cube[size]; vtkTextSource *textSource[size]; for(int i = 0; i < size; i++) { cubeMapper[i] = vtkPolyDataMapper::New(); cubeActor[i] = vtkActor::New(); cubeActor[i]->SetMapper( cubeMapper[i] ); textMapper[i] = vtkPolyDataMapper::New(); textActor[i] = vtkActor::New(); ren->AddActor( cubeActor[i] );
|
The way I did it was to just create an array for the
cubeSource, cubeActor, ect. Then just loop around grabbing data from file
and adding it to actors and then adding that to the window.
| Home C++ Tutorial Python Tutorial TCL/TK Tutorial Downloads Homework About Us Contact Links |
| C++ Tutorial Part 1: VS 6 Part 2: VS .NET Part 3: SUU Logs |