1#ifndef COIN_SBVIEWPORTREGION_H
2#define COIN_SBVIEWPORTREGION_H
28#include <Inventor/SbVec2s.h>
29#include <Inventor/SbVec2f.h>
38 void setWindowSize(
short width,
short height);
39 void setWindowSize(
SbVec2s winSize);
40 void setViewport(
float left,
float bottom,
41 float width,
float height);
43 void setViewportPixels(
short left,
short bottom,
44 short width,
short height);
46 const SbVec2s & getWindowSize(
void)
const;
47 const SbVec2f & getViewportOrigin(
void)
const;
48 const SbVec2s & getViewportOriginPixels(
void)
const;
49 const SbVec2f & getViewportSize(
void)
const;
50 const SbVec2s & getViewportSizePixels(
void)
const;
51 float getViewportAspectRatio(
void)
const;
52 void scaleWidth(
float ratio);
53 void scaleHeight(
float ratio);
54 void setPixelsPerInch(
float ppi);
55 float getPixelsPerInch(
void)
const;
56 float getPixelsPerPoint(
void)
const;
63 void print(FILE * file)
const;
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition SbVec2f.h:39
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition SbVec2s.h:41
The SbViewportRegion class is a viewport within a full window.
Definition SbViewportRegion.h:31
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.