VisualizationCommands CATExtISelectShow
Usage: you can derive this class.
public class CATExtISelectShow
Adaptor class for the CATISelectShow interface.
Role: This class provides a default implementation for any extension of the
interface.
Here is some advice on how to migrate your implementations after R15 :
Until R13, R14, you can :
- return E_NOTIMPL in
method.
- or you can copy and adapt the code that you do in
in the new method
and call within GetElement the method GetElementForHideShow .
In R15 or before :
- return E_NOTIMPL in
.
- report the code of
in
.
Method Index
- o
GetElement(CATPathElement*)
-
- o
GetElementForHideShow(CATPathElement*,CATBaseUnknown*&,int&)
- Selects the object to really put in show/noshow from the user selection.
- o
SelectShowPostProcess(CATPathElement*,CATShowAttribut)
- Post-processes a pathelement after an element has been put in Show or No Show.
Methods
o GetElement
public virtual GetElement( | | iPathElt) |
-
- Deprecated:
- V5R13 GetElementForHideShow.
Returns the object to really put in show/noshow from the user selection.
Role:
This method is used by the hide/show command to select, in the selected pathelement, the object
to show or hide.
By default, this function returns the last object in the pathelement.
- Parameters:
-
- iPathElt
- The pathelement which encloses the user selection.
- Returns:
- The object we really want to put in show/noshow.
It is not a CATPathElement, it is the object which will be put in show or noshow.
o GetElementForHideShow
public virtual GetElementForHideShow( | | iPathElt, |
| | oSelectedObject, |
| | oPostProcess) |
-
Selects the object to really put in show/noshow from the user selection.
Role:
This method is used by the hide/show command to select the object, that will be showed or hidden,
among the elements in the selected pathelement.
In the default implementation, the selected element is the last object in the pathelement.
- Parameters:
-
- iPathElt
- The pathelement which encloses the user selection.
- oSelectedObject
- The object you wish to put in Show or NoShow.
It is not a CATPathElement, it is the object which will be put in show or noshow.
- oPostProcess
- The flag that allows the call to
method, once the object has been processed by the Hide/Show command.
The default implementation values this flag to 0.
Legal values :
- 0 : the method
will not be called.
- 1 : the method
will be called.
- Returns:
-
- S_OK if the operation has succeeded.
- E_FAIL if the operation has failed.
- E_NOTIMPL if the method is not implemented. By default this is the returned result.
o SelectShowPostProcess
public virtual SelectShowPostProcess( | | iPathElt, |
| | iShowAttr) |
-
Post-processes a pathelement after an element has been put in Show or No Show.
Role :
This method will allow you to do particular processing after
the element, chosen in
method, has been put in Show/NoShow.
- Parameters:
-
- iPathElt
- The pathelement which encloses the user selection. It is also the argument of GetElementForHideShow.
- iShowAttr
- The state in which the processed element has been put.
- Returns:
-
- S_OK if the operation has succeeded.
- E_FAIL if the operation has failed.
This object is included in the file: CATExtISelectShow.h
If needed, your Imakefile.mk should include the module: CATVisCommands
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.