v_sim.GlCamera¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
centre  | 
[  | 
r/w  | 
position of the eye look at ;  | 
d_red  | 
r/w  | 
a factor for perspective from 1. to inifnity. With one, the nose of the observer is completly set on the rendered object, and the size of the observer is neglectible compared to the size of the object.  | 
|
eye  | 
[  | 
r/w  | 
position of the eye.  | 
gross  | 
r/w  | 
a value of zoom ;  | 
|
length0  | 
r/w  | 
a length reference to adimension all values, by default, this is the longest diagonal of the current box (without duplication) ;  | 
|
omega  | 
r/w  | 
rotation of the observer on itself ;  | 
|
phi  | 
r/w  | 
the phi angle in spherical coordinates of the position of the observer ;  | 
|
theta  | 
r/w  | 
the theta angle in spherical coordinates of the position of the observer ;  | 
|
unit  | 
r/w  | 
the unit of length0.  | 
|
up  | 
[  | 
r/w  | 
the current up vector.  | 
upAxis  | 
r/w  | 
which axis define the north pole.  | 
|
xs  | 
r/w  | 
a value for translation of the viewport on x axis ;  | 
|
ys  | 
r/w  | 
a value for translation of the viewport on y axis ;  | 
Methods¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Details¶
- class v_sim.GlCamera¶
 Values to define the position of the observer.
- copy(from_)¶
 - Parameters:
 from (
v_sim.GlCamera) – av_sim.GlCamerato copy values from
Do a deep copy of from to self.
New in version 3.7.
- getRefLength(unit)¶
 - Parameters:
 unit (
v_sim.Units) – a location for unit value (can beNone).- Returns:
 the current reference length.
- Return type:
 
The zoom is define from a reference length in given unit. If unit is provided, the corresponding unit will be set.
New in version 3.6.
- getScreenAxes(xAxis, yAxis)¶
 - Parameters:
 
This method is used to get the coordinates in box frame of x axis and y axis of the current camera view.
- setGross(value)¶
 - Parameters:
 value (
float) – a positive floating point value.- Returns:
 Trueif value is actually changed.- Return type:
 
Change the value of the camera zoom value. If the value is higher than 10 it is set to 10 and if the value is negative it is set to 0.001.
- setPersp(value)¶
 - Parameters:
 value (
float) – a floating point value greater than 1.1.- Returns:
 Trueif value is actually changed.- Return type:
 
Change the value of the camera perspective value and put it in bounds if needed.
- setRefLength(value, unit)¶
 - Parameters:
 value (
float) – a new length.unit (
v_sim.Units) – its measurement unit.
- Returns:
 Trueif the value is indeed changed.- Return type:
 
Change the reference value that is used for the zoom.
New in version 3.6.
- setThetaPhiOmega(valueTheta, valuePhi, valueOmega, mask)¶
 - Parameters:
 - Returns:
 a mask of changed values.
- Return type:
 
Change the orientation of the camera to the specified angles.
- setUpAxis(upAxis)¶
 - Parameters:
 upAxis (
v_sim.XyzDir) – a direction.
In constraint observation mode, the “north” direction is a singular one. Define this direction with this routine.
New in version 3.6.
- setXsYs(valueX, valueY, mask)¶
 - Parameters:
 - Returns:
 a mask of changed values.
- Return type:
 
Change the point where the camera is pointed to.