Ignore:
Timestamp:
Mar 7, 2012 12:21:30 PM (8 years ago)
Author:
ldelgass
Message:

Const correctness fixes, pass vector/matrix objects by reference, various
formatting and style cleanups, don't spam syslog and uncomment openlog() call.
Still needs to be compiled with -DWANT_TRACE to get tracing, but now trace
output will be output to file in /tmp.

File:
1 edited

Legend:

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

    r2798 r2822  
    1414 * ======================================================================
    1515 */
    16 
    1716#ifndef __NV_ZINC_BLENDE_RECONSTRUCTOR_H__
    1817#define __NV_ZINC_BLENDE_RECONSTRUCTOR_H__
     
    2726class ZincBlendeVolume;
    2827
    29 class NvZincBlendeReconstructor {
     28class NvZincBlendeReconstructor
     29{
    3030    char buff[255];
    3131
     
    3434     */
    3535    static NvZincBlendeReconstructor* _instance;
    36 private :
     36private:
    3737    /**
    3838     * @brief Constructor
     
    4545    ~NvZincBlendeReconstructor();
    4646
    47 public :
     47public:
    4848    /**
    4949     * @brief Return a singleton instance
     
    5151    static NvZincBlendeReconstructor* getInstance();
    5252
    53 private :
     53private:
    5454    /**
    5555     * @brief Get a line from file. It is used for reading header because header is written in ascii.
     
    5858    void getLine(std::istream& stream);
    5959    void getLine(unsigned char*& stream);
    60    
    61 public :
     60
     61public:
    6262    /**
    6363     * @brief Load Zinc blende binary volume data and create ZincBlendeVolume with the file
    6464     * @param fileName Zinc blende file name, which data is generated by NEMO-3D
    6565     */
    66     ZincBlendeVolume* loadFromFile(const char* fileName);
     66    ZincBlendeVolume *loadFromFile(const char* fileName);
    6767
    6868    /**
     
    7070     * @param data Zinc blende binary volume data, which data is generated by NEMO-3D and transferred from nanoscale
    7171     */
    72     ZincBlendeVolume* loadFromStream(std::istream& stream);
    73     ZincBlendeVolume* loadFromMemory(void* dataBlock);
     72    ZincBlendeVolume *loadFromStream(std::istream& stream);
     73    ZincBlendeVolume *loadFromMemory(void *dataBlock);
    7474
    7575    /**
     
    8282     * @param data the memory block of output data of NEMO-3D
    8383     */
    84     ZincBlendeVolume* buildUp(const Vector3& origin, const Vector3& delta, int width, int height, int depth, void* data);
    85     ZincBlendeVolume* buildUp(const Vector3& origin, const Vector3& delta, int width, int height, int depth, int datacount, double emptyvalue, void* data);
     84    ZincBlendeVolume *buildUp(const Vector3& origin, const Vector3& delta,
     85                              int width, int height, int depth, void *data);
     86    ZincBlendeVolume *buildUp(const Vector3& origin, const Vector3& delta,
     87                              int width, int height, int depth,
     88                              int datacount, double emptyvalue, void *data);
    8689};
    8790
    8891#endif
    89 
Note: See TracChangeset for help on using the changeset viewer.