Ignore:
Timestamp:
Mar 12, 2012 10:31:30 AM (8 years ago)
Author:
ldelgass
Message:

Cleanups, no functional changes

File:
1 edited

Legend:

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

    r2822 r2844  
    2828class NvZincBlendeReconstructor
    2929{
    30     char buff[255];
    31 
    32     /**
    33      * @brief A ZincBlendeReconstructor Singleton instance
    34      */
    35     static NvZincBlendeReconstructor* _instance;
    36 private:
    37     /**
    38      * @brief Constructor
    39      */
    40     NvZincBlendeReconstructor();
    41 
    42     /**
    43      * @brief Destructor
    44      */
    45     ~NvZincBlendeReconstructor();
    46 
    47 public:
    48     /**
    49      * @brief Return a singleton instance
    50      */
    51     static NvZincBlendeReconstructor* getInstance();
    52 
    53 private:
    54     /**
    55      * @brief Get a line from file. It is used for reading header because header is written in ascii.
    56      * @param fp A file pointer of data file
    57      */
    58     void getLine(std::istream& stream);
    59     void getLine(unsigned char*& stream);
    60 
    6130public:
    6231    /**
     
    6433     * @param fileName Zinc blende file name, which data is generated by NEMO-3D
    6534     */
    66     ZincBlendeVolume *loadFromFile(const char* fileName);
     35    ZincBlendeVolume *loadFromFile(const char *fileName);
    6736
    6837    /**
     
    7140     */
    7241    ZincBlendeVolume *loadFromStream(std::istream& stream);
     42
    7343    ZincBlendeVolume *loadFromMemory(void *dataBlock);
    7444
     
    8454    ZincBlendeVolume *buildUp(const Vector3& origin, const Vector3& delta,
    8555                              int width, int height, int depth, void *data);
     56
    8657    ZincBlendeVolume *buildUp(const Vector3& origin, const Vector3& delta,
    8758                              int width, int height, int depth,
    8859                              int datacount, double emptyvalue, void *data);
     60
     61    /**
     62     * @brief Return a singleton instance
     63     */
     64    static NvZincBlendeReconstructor* getInstance();
     65
     66private:
     67    NvZincBlendeReconstructor();
     68
     69    ~NvZincBlendeReconstructor();
     70
     71    /**
     72     * @brief Get a line from file. It is used for reading header because header is written in ascii.
     73     * @param fp A file pointer of data file
     74     */
     75    void getLine(std::istream& stream);
     76    void getLine(unsigned char*& stream);
     77
     78    char buff[255];
     79
     80    /// A ZincBlendeReconstructor Singleton instance
     81    static NvZincBlendeReconstructor* _instance;
    8982};
    9083
Note: See TracChangeset for help on using the changeset viewer.