Ignore:
Timestamp:
Sep 24, 2008, 10:03:52 AM (16 years ago)
Author:
gah
Message:

added stats counters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/AxisRange.h

    r1111 r1161  
    22#define _AXIS_RANGE_H
    33
     4#include <string.h>
     5
    46class AxisRange {
    57    double min_, max_;
     8    char *units_;
    69public:
    710    AxisRange(void) {
    811        min(0.0), max(1.0);
     12    }
     13    ~AxisRange(void) {
     14        if (units_ != NULL) {
     15            delete [] units_;
     16        }
    917    }
    1018    void SetRange(double min, double max) {
     
    2331        max_ = max;
    2432    }
     33    const char *units(void) {
     34        return units_;
     35    }
     36    void units(const char *units) {
     37        if (units_ != NULL) {
     38            delete [] units_;
     39        }
     40        units_ = new char [strlen(units) + 1];
     41        strcpy(units_, units);
     42    }
    2543};
    2644
Note: See TracChangeset for help on using the changeset viewer.