CView


Implements View control.

You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.

class CView :public virtual IView, public CControl
{
public:
    // IControl getters 
    bool isAcceptChild(IControl *control = nullptr) override;

    // IControl methods 
    void Refresh(const bool refresh_children) override;

    // IView getters 
    ICamera *getCamera() override;

    // IView setters 
    bool setCamera(ICamera *value) override;

    CView();
    CView(IForm *parent);
    CView(IControl *parent);
    ~CView() override;

    Color getBackgroundColor() const; // Return background color 
    float getTurnSpeed() const; // Return rotate speed 
    float getMoveSpeed() const; // Return move speed 
    float getMoveSlowMultiplier() const; // Return slow down multiplier 
    float getMoveFastMultiplier() const; // Return movement speed increase multiplier 
    float getFOVStep() const; // Return field of view change multiplier 

    bool setBackgroundColor(const Color &value); // Set background color 
    bool setTurnSpeed(const float value); // Set rotate speed 
    bool setMoveSpeed(const float value); // Set move speed 
    bool setMoveSlowMultiplier(const float value); // Set slow down multiplier 
    bool setMoveFastMultiplier(const float value); // Set movement speed increase multiplier 
    bool setFOVStep(const float value); // Set field of view change multiplier 

    bool isShowXAxis() const; // Return whether X-axis should be shown 
    bool isShowYAxis() const; // Return whether Y-axis should be shown 
    bool isShowZAxis() const; // Return whether Z-axis should be shown 
    PointF getXAxisRange() const; // Return X-axis drawing range 
    PointF getYAxisRange() const; // Return Y-axis drawing range 
    PointF getZAxisRange() const; // Return Z-axis drawing range 
    Color getXAxisColor() const; // Return X-axis color 
    Color getYAxisColor() const; // Return Y-axis color 
    Color getZAxisColor() const; // Return Z-axis color 

    bool setShowXAxis(const bool value); // Set whether X-axis should be shown 
    bool setShowYAxis(const bool value); // Set whether Y-axis should be shown 
    bool setShowZAxis(const bool value); // Set whether Z-axis should be shown 
    bool setXAxisRange(const PointF &value); // Set X-axis drawing range 
    bool setYAxisRange(const PointF &value); // Set Y-axis drawing range 
    bool setZAxisRange(const PointF &value); // Set Z-axis drawing range 
    bool setXAxisColor(const Color &value); // Set X-axis color 
    bool setYAxisColor(const Color &value); // Set Y-axis color 
    bool setZAxisColor(const Color &value); // Set Z-axis color 

    bool isShowGrid() const; // Return whether grid should be shown 
    float getGridXRange() const; // Return grid X range 
    float getGridZRange() const; // Return grid Z range 
    float getGridStep() const; // Return grid step 
    Color getGridColor() const; // Return grid color 

    bool setShowGrid(const bool value); // Set whether grid should be shown 
    bool setGridXRange(const float value); // Set grid X range 
    bool setGridZRange(const float value); // Set grid Z range 
    bool setGridStep(const float value); // Set grid step 
    bool setGridColor(const Color &value); // Set grid color 

    void LockUpdate(); // Prevent update while properties changing 
    void UnlockUpdate(); // Allow update while properties chaning 
};
Namespace: nitisa::opengl
Include: OpengL/Controls/View/View.h