Ignore:
Timestamp:
Apr 24, 2006, 9:59:10 AM (18 years ago)
Author:
qiaow
Message:

Added ScreenSnapper? class and VolumeRenderer? class.
VolumeRenderer? class can handle motiple volumes. Volume rendering code is seperated
from nanovis.cpp file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/vizservers/nanovis/Renderable.h

    r401 r406  
    2121#include "Vector3.h"
    2222
     23struct BoundBox{
     24  Vector3 low; //lower coordinates
     25  Vector3 high; //higher coordinates
     26
     27  BoundBox(){}
     28  BoundBox(float low_x, float low_y, float low_z,
     29          float high_x, float high_y, float high_z):
     30          low(Vector3(low_x, low_y, low_z)),
     31          high(Vector3(high_x, high_y, high_z)){}
     32};
     33
    2334class Renderable{
    2435protected:
    2536  Vector3 location;     //the location (x,y,z) of the object
    2637  bool enabled;         //display is enabled
     38  BoundBox boundary;    //the bounding box
    2739
    2840public:
Note: See TracChangeset for help on using the changeset viewer.