fAdjustAll = fShiftToLimits | fScaleToLimits
103fZoomXY = fZoomX | fZoomY
107 CGlPane(EProjMatrixPolicy policy = eAlwaysUpdate);
112 voidSetViewport(
const TVPRect&
R);
114 const TVPRect& GetViewport(
void)
const;
119 const TModelRect& GetModelLimitsRect(
void)
const;
124 const TModelRect& GetVisibleRect(
void)
const;
127 voidSetClipRect(
const TVPRect* rc_clip =
NULL);
130 const TVPRect* GetClipRect()
const;
136 voidEnableOffset(
boolb_en =
true);
141 boolOpen(EProjectionMode Mode);
145EProjectionMode GetProjMode(
void)
const;
161 voidSetProportionalMode(
bool set);
162 boolIsProportionalMode(
void)
const;
164 voidSetOriginType(EOriginType type_x, EOriginType type_y);
165 voidSetAdjustmentPolicy(
intadjust_x,
intadjust_y);
166 voidSetAdjustToLimits(
booladjust_x,
booladjust_y);
169 voidEnableZoom(
boolen_x,
boolen_y);
170 boolIsZoomInAvaiable(
void);
171 boolIsZoomOutAvaiable(
void);
176 voidZoomAll(
intoptions = fZoomXY);
178 voidZoomInCenter(
intoptions = fZoomXY);
180 voidZoomIn(
TModelPointp,
intoptions = fZoomXY);
182 voidZoomOutCenter(
intoptions = fZoomXY);
184 voidZoomOut(
TModelPointp,
intoptions = fZoomXY);
200 voidSetExactOrthoProjection(
boolexact_projection);
203 boolNeedsScrollX(
void)
const;
204 boolNeedsScrollY(
void)
const;
213 voidAdjustToLimits();
245 voidx_Open_SetViewport();
247 voidx_UpdateProjectMatrices(
void);
252 voidx_ShiftToFitLimits(
void);
253 voidx_ScaleToFitLimits(
void);
254 voidx_AdjustVisibleRect(
void);
258 voidx_AssertNotOpen(
void)
const;
259 voidx_AssertOrtho(
void)
const;
293GLdouble m_mxProjection[16];
294GLdouble m_mxModelView[16];
Include a standard set of the NCBI C++ Toolkit most basic headers.
TModelUnit GetZoomFactor(void) const
void SetMinScaleY(TModelUnit scale)
void SetModelLimitsRect(const TModelRect &R)
void ZoomPoint(TModelUnit x, TModelUnit y, TModelUnit factor, int options=fZoomXY)
EOriginType
Specifies what point should be preserved during various coordinate space adjustments.
CGlPaneGuard(CGlPane &pane, CGlPane::EProjectionMode mode)
const TVPRect * m_prcClip
void SetClipRect(const TVPRect *rc_clip=NULL)
set clipping rect that will be used by glScissor, NULL for reset
EAdjustmentPolicy
EAdjustmentPolicy specifies how visible area should be adjusted if some of the prjection parameters c...
EProjMatrixPolicy m_MatrixPolicy
TModelPoint GetOffset() const
CGlPaneGuard(const CGlPaneGuard &)
void x_ShiftToFitLimits(void)
TVPRect & GetViewport(void)
CGlPaneGuard & operator=(const CGlPaneGuard &)
TModelUnit GetOffsetY() const
const TVPRect * GetClipRect() const
returns clipping rect or NULL (if there is no clipping)
bool IsProportionalMode(void) const
TModelRect & GetModelLimitsRect(void)
void SetZoomFactor(TModelUnit factor=2.0)
bool Open(EProjectionMode Mode)
bool m_bExactOrthoProjection
TModelUnit m_OutputUnitScaler
void SetAdjustmentPolicy(int adjust_x, int adjust_y)
TModelUnit GetMinScaleY(void) const
void EnableZoom(bool en_x, bool en_y)
void ZoomIn(TModelUnit x, TModelUnit y, int options=fZoomXY)
void SetAdjustToLimits(bool adjust_x, bool adjust_y)
EZoomOptions
EZoomOptions flags control behavior of Zoom operations.
void SetProportionalMode(bool set)
CGlPane::EProjectionMode m_OrigMode
EProjectionMode GetProjMode(void) const
TModelRect & GetVisibleRect(void)
void SetMinScaleX(TModelUnit scale)
EProjMatrixPolicy
EProjMatrixPolicy controls CGlPane behavior in respect to obtaining projection matrices for future us...
void ZoomOut(TModelUnit x, TModelUnit y, int options=fZoomXY)
TModelUnit GetMinScaleX(void) const
TModelUnit GetOffsetX() const
void SetOutputUnitScaler(TModelUnit u)
Set/get output scaler.
void SetExactOrthoProjection(bool exact_projection)
TModelUnit GetOutputUnitScaler() const
CGlPoint< TModelUnit > TModelPoint
void SetOriginType(EOriginType type_x, EOriginType type_y)
TModelRect m_rcOrigVisible
void EnableOffset(bool b_en=true)
Offset is used as a workaround for OpenGL precision problems emerging when size of visible range is s...
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIOPENGL_EXPORT
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4