SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
Classes | Functions
evu Namespace Reference

Classes

class  ViewType
 No documentation available. More...

Functions

def AddErectionView
def AllocatedErectionViews
def DeleteErectionView
def EyeUpLookAt
def GetCurrentErectionViewName
def GetCurrentView
def GetErectionViews
def GlobalToCameraMatrix
def OpenErectionView
def SetCurrentView

Function Documentation

def evu.AddErectionView (   name,
  eye = Point3D(0, 0,
  up = Point3D(0, 1,
  look_at = Point3D(0, 0,
  type = evu.ViewType.Primary,
  screen_width = 480000.0,
  screen_height = 480000.0,
  depth_near = 36.0,
  depth_far = 36.0,
  pen_color = 6,
  line_type = 4,
  auto_pin = True 
)
Returns
Instance of type int
     Add a new erection view and return the index number of the new view. A return value less than 1 indicates the view could not be added.  A value of -1 indicates the view name already exists.
 
     C++ signature :
         int AddErectionView(std::string [,Point3D=Point3D(0, 0, 0) [,Point3D=Point3D(0, 1, 0) [,Point3D=Point3D(0, 0, -1) [,SDS2::evu::Type=evu.ViewType.Primary [,double=480000.0 [,double=480000.0 [,double=36.0 [,double=36.0 [,int=6 [,int=4 [,bool=True]]]]]]]]]]])
def evu.AllocatedErectionViews (   args)
Returns
Instance of type int
     Return the number of erection view entries allocated in the job.
 
     C++ signature :
         unsigned int AllocatedErectionViews()
def evu.DeleteErectionView (   name)
Returns
Instance of type bool
     Delete the specificed erection view. Return True iff the view is deleted.
 
     C++ signature :
         bool DeleteErectionView(std::string)
def evu.EyeUpLookAt (   global_to_camera_matrix)
Returns
Instance of type tuple
     Return a tuple representing the camera in global coordinates for the specified global to camera matrix.
 
     C++ signature :
         boost::python::tuple EyeUpLookAt(Xform)
def evu.GetCurrentErectionViewName (   args)
Returns
Instance of type str
     Return the name of the current view
 
     C++ signature :
         std::string GetCurrentErectionViewName()
def evu.GetCurrentView (   args)
Returns
Instance of type tuple
     Return a tuple representing information about the current view
 
     C++ signature :
         boost::python::tuple GetCurrentView()
def evu.GetErectionViews (   args)
Returns
Instance of type list
     Return a list of erection views where each view is a tuple. The first element is the index number of the view and the the rest of the tuple is the same format as the parameters for AddErectionView.  The following code will delete the first erection view and then add the same view.
     v = GetErectionViews()[ 0 ][ 1: ]
     DeleteErectionView( v[ 0 ] )
     AddErectionView( *v )
 
     C++ signature :
         boost::python::list GetErectionViews()
def evu.GlobalToCameraMatrix (   eye,
  up,
  look_at 
)
Returns
Instance of type Transform3D
     Return a Transform3D representing the global to camera matrix for the given view.
 
     C++ signature :
         Xform GlobalToCameraMatrix(Point3D,Point3D,Point3D)
def evu.OpenErectionView (   name)
Returns
Instance of type bool
     Change the view to the specified erection view. Return True iff the view is opened.
 
     C++ signature :
         bool OpenErectionView(std::string)
def evu.SetCurrentView (   eye = Point3D(0, 0,
  up = Point3D(0, 1,
  look_at = Point3D(0, 0,
  screen_width = 480000.0,
  screen_height = 480000.0,
  depth_near = 36.0,
  depth_far = 36.0 
)
Returns
Instance of type None
     Set the current view
 
     C++ signature :
         void SetCurrentView([ Point3D=Point3D(0, 0, 0) [,Point3D=Point3D(0, 1, 0) [,Point3D=Point3D(0, 0, -1) [,double=480000.0 [,double=480000.0 [,double=36.0 [,double=36.0]]]]]]])