VisualizationFoundation  CAT3DCurvedPipeGPEditHelper
Usage: you must use this class as is. You should never derive it.
 public class CAT3DCurvedPipeGPEditHelper
 Class to edit CAT3DCurvedPipeGP graphic primitive
 CATGraphicPrimitive must be edited in context, this class handles edition authorization.
 NB : Do not keep EditHelper alive wore than necessary. Edition context notifcation is done on destruction. 
 That's why heap allocation is forbidden.
 Constructor and Destructor Index
 
 -  o 
    CAT3DCurvedPipeGPEditHelper()
 -   Constructor.
 
 -  o 
    ~CAT3DCurvedPipeGPEditHelper()
 -   Destructor.
 
 Method Index
 
 -  o 
    GetCurvedPipe()
 -   Return the currently edited CAT3DCurvedPipeGP
 
 
 -  o 
    GetTextureCoordinates(float**,int*)
 -   Retrieves the texture coordinates.
 
 -  o 
    IsEditionPossible(CAT3DCurvedPipeGP*,CATRep*)
 -   Get if the edition of the given graphic primitive is possible, and if not, why.
 
 -  o 
    Reset(CAT3DCurvedPipeGP*,CATRep*)
 -   Change the EditHelper's data from a new primitive with its edition context
 In case of success, if the EditHelper is not empty, the old edition context is notified.
 
 -  o 
    SetTextureCoordinates(float const*,unsigned int)
 -   Sets the texture coordinates.
 
 Constructor and Destructor
 
  o CAT3DCurvedPipeGPEditHelper
  |   public   CAT3DCurvedPipeGPEditHelper( | )   | 
  - 
 Constructor.
 
  o ~CAT3DCurvedPipeGPEditHelper
  |   public   ~CAT3DCurvedPipeGPEditHelper( | )   | 
  - 
 Destructor.
 If the EditHelper is not empty, the edition context is notified.
 
 Methods
 
  o GetCurvedPipe
  
  - 
 Return the currently edited CAT3DCurvedPipeGP
 
  -  Returns: 
  
 -    The currently edited CAT3DCurvedPipeGP
  If the EditHelper was empty, NULL is returned.
 
 
  o GetTextureCoordinates
  |   public   GetTextureCoordinates( |   | oTextureCoord, | 
 |   | oDimension)   | 
  - 
 Retrieves the texture coordinates.
 This method must be used like this:
 
 float * textureCoord;
 GetTextureCoord(&textureCoord);
 
 
  -  Parameters:
  
 - 
    
    -  oTextureCoord
   
 -     Retrieves the array of texture coordinates.
    Each vertex has an associated position
    in the texture map. The number of texture coordinates groups is always equal to the number of
    vertices. 
 
 
    -  oDimension
   
 -     Retrieve the number of coordinates per vertex.
 
 
 
  o IsEditionPossible
  |   public static   IsEditionPossible( |   | iPipe, | 
 |   | iRep)   | 
  - 
 Get if the edition of the given graphic primitive is possible, and if not, why.
 
  -  Parameters:
  
 - 
    
    -  iPire
   
 -    The pipe to be edited
 
 
    -  iRep
   
 -    The Rep which should contain the pipe
 
 
   -  Returns: 
  
 -    A CATGraphicPrimitiveEditHelper::EditAuthorization value, depending of the context.
 
 
  o Reset
  |   public   Reset( |   | iPipe, | 
 |   | iRep)   | 
  - 
 Change the EditHelper's data from a new primitive with its edition context
 In case of success, if the EditHelper is not empty, the old edition context is notified.
 
  -  Parameters:
  
 - 
    
    -  iPipe
   
 -    The CAT3DCurvedPipeGP instance to be edited.
   If the pipe is not contained in any Rep, this parameter can be NULL
 
 
    -  iRep
   
 -    Rep containing the Pipe. Only CAT3DCustomRep are supported at the moment.
 
 
   -  Returns: 
  
 -     If the pipe can be edited in the provided context, S_OK, otherwise, E_FAIL
   It should be noted that if the pipe is contained in more than one Rep, it will always fail.
 
 
  o SetTextureCoordinates
  |   public   SetTextureCoordinates( |   | iTC, | 
 |   | iDim)   | 
  - 
 Sets the texture coordinates.
 
  -  Parameters:
  
 - 
    
    -  iTextureCoord
   
 -     Array of texture coordinates. Each vertex has an associated position
    in the texture map. The number of texture coordinates groups is always equal to the number of
    vertices. 
 
 
    -  iTextureFormat
   
 -     iTextureFormat is the number of fields associated to one vertex in the iTextureCoord array.
    It is also the number of texture coordinates associated to each vertex.
    Indeed, each vertex has associated coordinates in the texture map. The
    number of coordinates depends on the map dimension: the texture map
    may be in 1D, 2D or 3D. 
 
Legal values:
   
      - 1
 
        - The texture map is a one dimension map. Each vertex has a single associated texture coordinate
 
      - 2
 
        - The texture map is a two-dimension map. Each vertex has two associated texture coordinates
 
      - 3
 
        - The texture map is a three-dimension map. Each vertex has three associated texture coordinates
 
   
 
 
 
 This object is included in the file: CAT3DCurvedPipeGPEditHelper.h
If needed, your Imakefile.mk should include the module: CATVisFoundation
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.