Link Search Menu Expand Document

CLASSIFIER : GRCone

uid: class-GRCCONE-CVEViewer-MetaModel@g-scop.grenoble-inp.fr

About

Abstract

A GRCone is a graphic node visualizing a simple cone

GRCone

To create a GRCone just call:

frame=cve.viewer.GRCone(Center=(0,0,0),Direction=(0,0,1),Height=100,Radius=50,Resolution=180)

where :

  • Center (center of the base)
  • Direction : axis
  • Height
  • Radius
  • Resolution

To be done : should be adapted to get a base and top radius. Currently top radius=0.

Class Diagram

Class diagram of class of GRCone.

Inherits

attribute type cardinality
Radius vreal [1,1]
Height vreal [1,1]
Center vvector [1,1]
Direction vvector [1,1]
Resolution vint [1,1]

Methods

  • set_radius(self,..) :

          set cone radius
          < r : cone radius
    
  • get_radius(self,..) :

          get dimension  in local coordinate
          > radius
    
  • set_height(self,..) :

          set cone height
          < h : height
    
  • get_height(self,..) :

          get dimension  in local coordinate
          > height
    
  • set_direction(self,..) :

          set cone direction
          < direction :(dx,dy,dz)
    
  • get_direction(self,..) :

          get direction  in local coordinate
          > direction (dx,dy,dz)
    
  • set_resolution(self,..) :

          set cone tesselation resolution
          < direction :(dx,dy,dz)
    
  • get_resolution(self,..) :

          get cone  tesselation resolution
          > resolution