VisualizationController class CATGraphicPathElement

Usage: you must use this class as is. You should never derive it.


public class CATGraphicPathElement

Class representing a CATPathElement with graphical informations.

Role : these object define a particular CATPathElement that keep informations of picking (intersection coordinates and normal at the intersection point with the graphical representation - CATRep - ).

This class is used by CATManipulator and CATSelector to generate a CATPathElement without loosing all informations of picking. These informations are :
- coordinates of intersection in model units ;
- normal at the point of intersection ;
- viewer in wich the picking was realised.

See also:
CATPathElement, CATViewer, CATManipulator, CATSelector


Constructor and Destructor Index


o CATGraphicPathElement()
Default constructor.
o CATGraphicPathElement(CATPathElement&)
Copy constructor of a CATGraphicPathElement taking a CATPathElement
in parameter.
o CATGraphicPathElement(CATGraphicPathElement&)
Copy constructor of a CATGraphicPathElement.
o CATGraphicPathElement(CATBaseUnknown*,CATViewer*,CATMathPointf,CATMathDirectionf,CATMathDirectionf)
Main constructor of CATGraphicPathElement.
o ~CATGraphicPathElement()

Method Index


o Clone()
Creates a new CATGraphicPathElement by dupplication of this.
o FindElement(IID&)
Finds an element in the CATGraphicPathElement.
o GetInteractiveContext()
Gets the interactive context.
o SetInteractiveContext(CATVisInteractiveContext)
Defines the interactive context.
o operator =(CATGraphicPathElement&)
Operator of assignment.

Constructor and Destructor


o CATGraphicPathElement
public CATGraphicPathElement()
Default constructor.
o CATGraphicPathElement
public CATGraphicPathElement( const CATPathElement& iBrother)
Copy constructor of a CATGraphicPathElement taking a CATPathElement
in parameter.
Parameters:
iBrother
The CATPathElement used to construct this one.
if you use this constructor, picking informations are not valued.
o CATGraphicPathElement
public CATGraphicPathElement( const CATGraphicPathElement& iBrother)
Copy constructor of a CATGraphicPathElement.
Parameters:
iBrother
The other CATGraphicPathElement used to construct this one.
o CATGraphicPathElement
public CATGraphicPathElement( const CATBaseUnknown* iTopObject,
CATViewer* iViewer,
CATMathPointf iIntersectionPoint,
CATMathDirectionf iNormal,
CATMathDirectionf iGlobalNormal=CATMathDirectionf())
Main constructor of CATGraphicPathElement.
Parameters:
iTopObject
First object to add in the path.
Replace the first call to
CATPathElement.AddElement .
Cyclic reference : A copy of iTopObject is kept and a AddRef is done on it.
iViewer.
The viewer in wich the pickpath was created (where the the object was picked).
iIntersectionPoint
The intersection with the graphic representation using coordinates of model.
Be carreful that the intersection is compute with tersselation of visualization.
iNormal
The normal at the intersection of the picking with the graphic representation.
iGlobalNormal
The normal at the intersection of the picking with the graphic representation given in the global coordinary system.
o ~CATGraphicPathElement
public virtual ~CATGraphicPathElement()

Methods


o Clone
public virtual CATPathElement* Clone()const
Creates a new CATGraphicPathElement by dupplication of this.
Returns:
A pointer on the new CATGraphicPathElement.
Don't forget to delete this variable after use.
o FindElement
public virtual CATBaseUnknown* FindElement( const IID& iid)
Finds an element in the CATGraphicPathElement.
This function could be used as CATPathElement.FindElement
but you can also find on of the particular datas of the CATGraphicPathElement.
Parameters:
iid
The interface of the object you look for.
The following values are accepted :
CATViewer::ClassId()
Return a pointer on the CATViewer in wich the picking was done.
CAT3DViewer::ClassId()
Return a pointer on the CAT3DViewer in wich the picking was done.
CAT2DViewer::ClassId()
Return a pointer on the CAT2DViewer in wich the picking was done.
CATGraphicElementIntersection::ClassId()
Return a pointer on a CATGraphicElementIntersection that defined the intersection between the picking and the graphic representation.
CATGraphicElementNormale::ClassId()
Return a pointer on a CATGraphicElementNormale that defined the normal on the graphic representation at the picking point.
Otherwise
Call
CATPathElement.FindElement
Returns:
A pointer on the asking element.
A AddRef is done before returning the pointer, you have to
call the Release function after use of it.
o GetInteractiveContext
public CATVisInteractiveContext GetInteractiveContext()const
Gets the interactive context.
Role : gives the interactive context that
will be use to draw the graphic representation.
Returns:
The CATVisInteractiveContext of the context.
o SetInteractiveContext
public void SetInteractiveContext(CATVisInteractiveContext iContext)
Defines the interactive context.
Role : precise if the graphic representation
must be drawn taking account the context defined in parameter.
Parameters:
iContext
The context defines by
CATVisInteractiveContext enum.
o operator =
public CATGraphicPathElement& operator =( const CATGraphicPathElement& iBrother)
Operator of assignment.
Parameters:
iBrother
The other CATGraphicPathElement to assign to this.
Returns:
A Reference on CATGraphicPathElement that contains the same datas
that the parameter iBrother.

This object is included in the file: CATGraphicPathElement.h
If needed, your Imakefile.mk should include the module: CATVisController

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.