Ignore:
Timestamp:
Apr 1, 2011, 12:28:21 AM (14 years ago)
Author:
ldelgass
Message:

Fix pan/zoom for VTK contours, add command to control data range mapping for
multiple datasets. Still need to fix 3D panning, allow absolute rotation/
orientation of the camera.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/RpVtkRenderer.h

    r2146 r2194  
    8484    void setVisibility(const DataSetId& id, bool state);
    8585
     86    void setUseCumulativeDataRange(bool state, bool onlyVisible = false);
     87
    8688    // Render window
    8789
     
    9698    void setCameraMode(CameraMode mode);
    9799
     100    CameraMode getCameraMode() const;
     101
    98102    void resetCamera(bool resetOrientation = true);
    99103
    100104    void setCameraZoomRegion(double x, double y, double width, double height);
    101105
     106    void getCameraZoomRegion(double xywh[4]) const;
     107
     108    void getScreenWorldCoords(double xywh[4]) const;
     109
    102110    void rotateCamera(double yaw, double pitch, double roll);
    103111
    104     void panCamera(double x, double y);
    105 
    106     void zoomCamera(double z);
     112    void panCamera(double x, double y, bool absolute = true);
     113
     114    void zoomCamera(double z, bool absolute = true);
    107115
    108116    // Rendering an image
     
    228236    void collectBounds(double *bounds, bool onlyVisible);
    229237
    230     void collectDataRanges(double *range);
     238    void collectDataRanges(double *range, bool onlyVisible);
    231239
    232240    void updateRanges(bool useCumulative);
     241
     242    void computeScreenWorldCoords();
    233243
    234244    void storeCameraOrientation();
     
    242252    double _imgWorldOrigin[2];
    243253    double _imgWorldDims[2];
     254    double _screenWorldCoords[4];
    244255    double _cameraPos[3];
    245256    double _cameraFocalPoint[3];
    246257    double _cameraUp[3];
     258    double _cameraZoomRatio;
     259    double _cameraPan[2];
    247260    float _bgColor[3];
    248     bool _useCumulativeRanges;
     261    bool _useCumulativeRange;
     262    bool _cumulativeRangeOnlyVisible;
    249263    double _cumulativeDataRange[2];
    250264
Note: See TracChangeset for help on using the changeset viewer.