v_sim.GlWindow¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
bottom  | 
r/w  | 
the bottom of the viewport on y axis ;  | 
|
extens  | 
r/w  | 
additional length to add to length0 to obtain the global viewable area.  | 
|
far  | 
r/w  | 
the end of the viewport on z axis (z for observer) ;  | 
|
height  | 
r/w  | 
the height of the window ;  | 
|
left  | 
r/w  | 
the left of the viewport on x axis ;  | 
|
near  | 
r/w  | 
the beginning of the viewport on z axis (z for observer) ;  | 
|
right  | 
r/w  | 
the right of the viewport on x axis ;  | 
|
top  | 
r/w  | 
the top of the viewport on y axis ;  | 
|
unit  | 
r/w  | 
the   | 
|
width  | 
r/w  | 
the width of the window ;  | 
Methods¶
  | 
|
  | 
|
  | 
Details¶
- class v_sim.GlWindow¶
 Values to describe the window where the render is done.
- getAddLength(unit)¶
 - Parameters:
 unit (
v_sim.UnitsorNone) – a location for the unit of the returned value.- Returns:
 the additional length to be added to the camera object size to obtain the full viewable area.
- Return type:
 
The viewable area is defined by the
v_sim.GlCamerasize, as set byv_sim.GlCamera.setRefLength() and by additional space setup byv_sim.GlWindow.setAddLength().New in version 3.7.
- getFileUnitPerPixel()¶
 - Returns:
 how much of a unit of file is in a pixel.
- Return type:
 
This method is used to know the ratio of a pixel with the unit of the file. WARNING : this method is valid only when the camera is position at infinity.
- setAddLength(value, unit)¶
 - Parameters:
 value (
float) – a float value (positive).unit (
v_sim.Units) – the unit of value.
- Returns:
 Trueif the value is indeed changed.- Return type:
 
The viewable area is defined by the
v_sim.GlCamerasize, as set byv_sim.GlCamera.setRefLength() and by additional space setup by this routine.New in version 3.7.