IHeightmap



Describes minimum required functionality from Heightmap control.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class IHeightmap :public virtual I3DControl
{
public:
    virtual bool isUseVertexNormal() = 0; // Return whether to use vertex normals or polygon ones 
    virtual float getCellWidth() = 0; // Return image pixel width to 3D space convertion scale factor 
    virtual float getCellHeight() = 0; // Return image color to 3D space convertion scale factor 
    virtual float getCellDepth() = 0; // Return image pixel height to 3D space convertion scale factor 
    virtual String getFilename() = 0; // Return image file name 
    virtual Point getHeightmapSize() = 0; // Return count of polygons(int X and Z directions) after converting from image. It is equal to { ImageWidth - 1, ImageHeight - 1 } 

    virtual bool setUseVertexNormal(const bool value) = 0; // Set whether to use vertex normals or polygon ones 
    virtual bool setCellWidth(const float value) = 0; // Set image pixel width to 3D space convertion scale factor 
    virtual bool setCellHeight(const float value) = 0; // Set image color to 3D space convertion scale factor 
    virtual bool setCellDepth(const float value) = 0; // Set image pixel height to 3D space convertion scale factor 
    virtual bool setCellSize(const float width, const float height, const float depth) = 0; // Set image to 3D geometry scaling factors 
    virtual bool setFilename(const String &value) = 0; // Set image file name 
};
Namespace: nitisa::opengl
Include: OpenGL/Controls/IHeightmap.h