Logo Search packages:      
Sourcecode: opencascade version File versions  Download package

AIS_Relation Class Reference

#include <AIS_Relation.hxx>

Inheritance diagram for AIS_Relation:

AIS_InteractiveObject SelectMgr_SelectableObject PrsMgr_PresentableObject MMgt_TShared Standard_Transient AIS_AngleDimension AIS_Chamf2dDimension AIS_Chamf3dDimension AIS_ConcentricRelation AIS_DiameterDimension AIS_EllipseRadiusDimension AIS_EqualDistanceRelation AIS_FixRelation AIS_IdenticRelation AIS_LengthDimension AIS_MidPointRelation AIS_OffsetDimension AIS_ParallelRelation AIS_PerpendicularRelation AIS_RadiusDimension AIS_SymmetricRelation AIS_TangentRelation

List of all members.


Detailed Description

One of the four types of interactive object in
AIS,comprising dimensions and constraints. Serves
as the abstract class for the seven relation classes as
well as the seven dimension classes.
The statuses available for relations between shapes are as follows:

Definition at line 117 of file AIS_Relation.hxx.


Public Member Functions

virtual Standard_EXPORT
Standard_Boolean 
AcceptDisplayMode (const Standard_Integer aMode) const
virtual Standard_Boolean AcceptShapeDecomposition () const
Standard_EXPORT void AddSelection (const Handle(SelectMgr_Selection)&aSelection, const Standard_Integer aMode)
Standard_EXPORT void AddUser (const Handle(Standard_Transient)&aUser)
Standard_Real ArrowSize () const
const Handle_AIS_Drawer & Attributes () const
 Returns the attributes settings.
.
Standard_Boolean AutomaticPosition () const
Standard_EXPORT void ClearOwner ()
virtual Standard_EXPORT void ClearSelected ()
Standard_EXPORT void ClearSelections (const Standard_Boolean update=Standard_False)
Standard_EXPORT void ClearUsers ()
virtual void Color (Quantity_Color &aColor) const
virtual Quantity_NameOfColor Color () const
 Returns the color setting of the Interactive Object.
.
Standard_EXPORT
Aspect_TypeOfFacingModel 
CurrentFacingModel () const
 Returns the current facing model which is in effect.
.
const Handle_SelectMgr_Selection & CurrentSelection () const
 Returns the current selection in this framework.
.
virtual Standard_EXPORT
Standard_Integer 
DefaultDisplayMode () const
virtual Standard_EXPORT
Aspect_TypeOfDegenerateModel 
DegenerateModel (Quantity_Ratio &aRatio) const
virtual Standard_EXPORT void Delete () const
 Memory deallocator for transient classes.
Standard_Integer DisplayMode () const
virtual Standard_EXPORT const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object.
virtual Standard_EXPORT const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object.
Standard_Integer ExtShape () const
 Returns the status index of the extension shape.
.
const TopoDS_ShapeFirstShape () const
Standard_EXPORT
Handle_AIS_InteractiveContext 
GetContext () const
 Returns the context pointer to the interactive context.
.
Standard_EXPORT
Handle_Prs3d_Presentation 
GetHilightPresentation (const Handle(PrsMgr_PresentationManager3d)&TheMgr)
const Handle_Standard_Transient & GetOwner () const
Standard_EXPORT Standard_Integer GetRefCount () const
 Get the reference counter of this object.
Standard_EXPORT Standard_Integer GetRefCount () const
 Get the reference counter of this object.
Standard_EXPORT
Handle_Prs3d_Presentation 
GetSelectPresentation (const Handle(PrsMgr_PresentationManager3d)&TheMgr)
Standard_EXPORT
Graphic3d_TransModeFlags 
GetTransformPersistenceMode () const
 Gets Transform Persistence Mode for this object
.
Standard_EXPORT gp_Pnt GetTransformPersistencePoint () const
 Gets point of transform persistence for this object
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const
Standard_Boolean HasColor () const
 Returns true if the Interactive Object has color.
.
Standard_Boolean HasDisplayMode () const
virtual Standard_EXPORT
Standard_Integer 
HashCode (const Standard_Integer Upper) const
virtual Standard_EXPORT
Standard_Integer 
HashCode (const Standard_Integer Upper) const
Standard_Boolean HasHilightMode () const
 Returns true if the Interactive Object is in highlight mode.
.
Standard_EXPORT Standard_Boolean HasInteractiveContext () const
Standard_EXPORT Standard_Boolean HasLocation () const
Standard_EXPORT Standard_Boolean HasMaterial () const
 Returns true if the Interactive Object has a setting for material.
.
Standard_EXPORT Standard_Boolean HasOwner () const
virtual Standard_EXPORT
Standard_Boolean 
HasPolygonOffsets () const
 Returns Standard_True if <myDrawer> has non-null shading aspect
.
Standard_EXPORT Standard_Boolean HasPresentation () const
Standard_EXPORT Standard_Boolean HasSelection (const Standard_Integer aMode) const
Standard_EXPORT Standard_Boolean HasSelectionMode () const
Standard_Boolean HasSelectionPriority () const
Standard_EXPORT Standard_Boolean HasTransformation () const
 Returns TRUE when this object is transformed
.
Standard_EXPORT Standard_Boolean HasUsers () const
Standard_Boolean HasWidth () const
 Returns true if the Interactive Object has width.
.
Standard_Integer HilightMode () const
virtual Standard_EXPORT void HilightOwnerWithColor (const Handle(PrsMgr_PresentationManager3d)&thePM, const Quantity_NameOfColor theColor, const Handle(SelectMgr_EntityOwner)&theOwner)
virtual Standard_EXPORT void HilightSelected (const Handle(PrsMgr_PresentationManager3d)&PM, const SelectMgr_SequenceOfOwner &Seq)
 Method which draws selected owners ( for fast presentation draw )
.
void Init ()
 Begins the iteration scanning for sensitive primitives.
.
virtual Standard_EXPORT
Standard_Boolean 
IsAutoHilight () const
Standard_Boolean IsInfinite () const
Standard_EXPORT Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
Standard_EXPORT Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type.
Standard_EXPORT Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
Standard_EXPORT Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type.
Standard_EXPORT Standard_Boolean IsKind (const Standard_CString theTypeName) const
Standard_EXPORT Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
Standard_EXPORT Standard_Boolean IsKind (const Standard_CString theTypeName) const
Standard_EXPORT Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
virtual Standard_EXPORT
Standard_Boolean 
IsMovable () const
 Returns true if the interactive object is movable.
.
Standard_Boolean IsTransparent () const
 Returns true if there is a transparency setting.
.
virtual Standard_EXPORT
AIS_KindOfDimension 
KindOfDimension () const
 Indicates that the type of dimension is unknown.
.
const TopLoc_LocationLocation () const
virtual Standard_EXPORT
Graphic3d_NameOfMaterial 
Material () const
Standard_Boolean More () const
 Continues the iteration scanning for sensitive primitives.
.
virtual Standard_EXPORT
Standard_Integer 
NbPossibleSelection () const
void Next ()
 Continues the iteration scanning for sensitive primitives.
.
void operator delete (void *anAddress)
 Operator delete symmetric to operator new.
void operator delete (void *anAddress)
 Operator delete symmetric to operator new.
void * operator new (size_t size)
 Operator new for memory allocation uses Open CASCADE memory manager.
void * operator new (size_t, void *anAddress)
 Operator new for placement in pre-allocated memory.
void * operator new (size_t size)
 Operator new for memory allocation uses Open CASCADE memory manager.
void * operator new (size_t, void *anAddress)
 Operator new for placement in pre-allocated memory.
const Handle_Geom_Plane & Plane () const
 Returns the plane.
.
virtual Standard_EXPORT void PolygonOffsets (Standard_Integer &aMode, Standard_Real &aFactor, Standard_Real &aUnits) const
 Retrieves current polygon offsets settings from <myDrawer>.
.
const gp_PntPosition () const
 Returns the position set using SetPosition.
.
Standard_EXPORT
Handle_Prs3d_Presentation 
Presentation () const
Standard_EXPORT void Redisplay (const Standard_Boolean AllModes=Standard_False)
Standard_EXPORT void ResetLocation ()
const TopoDS_ShapeSecondShape () const
 Returns the second shape.
.
Standard_EXPORT const
Handle_SelectMgr_Selection & 
Selection (const Standard_Integer aMode) const
 Returns the selection Selection having the selection mode aMode.
.
Standard_EXPORT Standard_Integer SelectionMode () const
 Returns the selection mode of the interactive object.
.
Standard_Integer SelectionPriority () const
void SetArrowSize (const Standard_Real anArrowSize)
Standard_EXPORT void SetAspect (const Handle(Prs3d_BasicAspect)&anAspect, const Standard_Boolean globalChange=Standard_True)
virtual Standard_EXPORT void SetAttributes (const Handle(AIS_Drawer)&aDrawer)
 Initializes the drawing tool aDrawer.
.
virtual Standard_EXPORT void SetAutoHilight (const Standard_Boolean newAutoHilight)
 Set AutoHilight property to true or false
//! Sets up Transform Persistence Mode for this object
.
void SetAutomaticPosition (const Standard_Boolean aStatus)
void SetBndBox (const Standard_Real Xmin, const Standard_Real Ymin, const Standard_Real Zmin, const Standard_Real Xmax, const Standard_Real Ymax, const Standard_Real Zmax)
Standard_EXPORT void SetColor (const Quantity_Color &aColor)
Standard_EXPORT void SetColor (const Quantity_NameOfColor aColor)
virtual Standard_EXPORT void SetContext (const Handle(AIS_InteractiveContext)&aCtx)
Standard_EXPORT void SetCurrentFacingModel (const Aspect_TypeOfFacingModel aModel=Aspect_TOFM_BOTH_SIDE)
virtual Standard_EXPORT void SetDegenerateModel (const Aspect_TypeOfDegenerateModel aModel=Aspect_TDM_WIREFRAME, const Quantity_Ratio aRatio=0.0)
Standard_EXPORT void SetDisplayMode (const Standard_Integer aMode)
void SetExtShape (const Standard_Integer aIndex)
virtual Standard_EXPORT void SetFirstShape (const TopoDS_Shape &aFShape)
void SetHilightMode (const Standard_Integer anIndex)
Standard_EXPORT void SetInfiniteState (const Standard_Boolean aFlag=Standard_True)
virtual Standard_EXPORT void SetLocation (const TopLoc_Location &aLoc)
virtual Standard_EXPORT void SetMaterial (const Graphic3d_MaterialAspect &aName)
virtual Standard_EXPORT void SetMaterial (const Graphic3d_NameOfMaterial aName)
void SetOwner (const Handle(Standard_Transient)&ApplicativeEntity)
void SetPlane (const Handle(Geom_Plane)&aPlane)
virtual Standard_EXPORT void SetPolygonOffsets (const Standard_Integer aMode, const Standard_Real aFactor=1.0, const Standard_Real aUnits=0.0)
void SetPosition (const gp_Pnt &aPosition)
virtual Standard_EXPORT void SetSecondShape (const TopoDS_Shape &aSShape)
Standard_EXPORT void SetSelectionMode (const Standard_Integer aMode)
void SetSelectionPriority (const Standard_Integer aPriority)
void SetSymbolPrs (const DsgPrs_ArrowSide aSymbolPrs)
 Allows you to provide settings for the symbol presentation.
.
void SetText (const TCollection_ExtendedString &aText)
 Allows you to provide the settings aText for text aspect.
.
Standard_EXPORT void SetToUpdate ()
 flags all the Presentations to be Updated.

Standard_EXPORT void SetToUpdate (const Standard_Integer aMode)
Standard_EXPORT void SetTransformation (const Handle(Geom_Transformation)&aTranformation, const Standard_Boolean postConcatenate=Standard_False, const Standard_Boolean updateSelection=Standard_True)
Standard_EXPORT void SetTransformPersistence (const Graphic3d_TransModeFlags &aFlag)
 Calls previous method with point (0,0,0)
.
virtual Standard_EXPORT void SetTransformPersistence (const Graphic3d_TransModeFlags &aFlag, const gp_Pnt &APoint)
 Sets up Transform Persistence Mode for this object
.
virtual Standard_EXPORT void SetTransparency (const Standard_Real aValue=0.6)
Standard_EXPORT void SetTypeOfPresentation (const PrsMgr_TypeOfPresentation3d aType)
void SetValue (const Standard_Real aVal)
virtual Standard_EXPORT void SetWidth (const Standard_Real aValue)
virtual Standard_EXPORT void ShallowDump (Standard_OStream &) const
virtual Standard_EXPORT void ShallowDump (Standard_OStream &) const
virtual Standard_EXPORT
Standard_Integer 
Signature () const
Standard_Integer State () const
void State (const Standard_Integer theState)
DsgPrs_ArrowSide SymbolPrs () const
const TCollection_ExtendedStringText () const
 Returns settings for text aspect.
.
virtual Standard_EXPORT
Handle_Standard_Transient 
This () const
virtual Standard_EXPORT
Handle_Standard_Transient 
This () const
Standard_EXPORT void ToBeUpdated (TColStd_ListOfInteger &ListOfMode) const
 gives the list of modes which are flagged "to be updated".

Standard_EXPORT
Handle_Geom_Transformation 
Transformation ()
virtual Standard_EXPORT
Standard_Real 
Transparency () const
virtual AIS_KindOfInteractive Type () const
Standard_EXPORT
PrsMgr_TypeOfPresentation3d 
TypeOfPresentation3d () const
 Returns information on whether the object accepts display in HLR mode or not.
.
virtual Standard_EXPORT void UnsetAttributes ()
 Clears settings provided by the drawing tool aDrawer.
.
void UnsetBndBox ()
Standard_EXPORT void UnsetColor ()
void UnsetDisplayMode ()
 Removes display mode settings from the interactive object.
.
void UnsetHilightMode ()
virtual Standard_EXPORT void UnsetMaterial ()
 Removes the setting for material.
.
void UnsetSelectionMode ()
void UnsetSelectionPriority ()
 Removes the setting for selection priority. SelectionPriority then returns -1.
.
Standard_EXPORT void UnsetTransformation ()
 Deactivate the current transformation
.
virtual Standard_EXPORT void UnsetTransparency ()
 Removes the transparency setting. The object is opaque by default.
.
virtual Standard_EXPORT void UnsetWidth ()
virtual Standard_EXPORT void UpdateLocation (const Handle(Prs3d_Presentation)&P)
virtual Standard_EXPORT void UpdateLocation ()
 Recomputes the location of the selection aSelection.
.
Standard_EXPORT void UpdateSelection (const Standard_Integer aMode)
Standard_EXPORT void UpdateSelection ()
 re-computes the sensitive primitives for all modes

const TColStd_ListOfTransient & Users () const
Standard_Real Value () const
 Returns the value of each object in the relation.
.
Standard_EXPORT Standard_Real Width () const
 Returns the width setting of the Interactive Object.
.

Protected Member Functions

Standard_EXPORT AIS_Relation (const PrsMgr_TypeOfPresentation3d aTypeOfPresentation3d=PrsMgr_TOP_AllView)
virtual Standard_EXPORT void Compute (const Handle(Prs3d_Projector)&aProjector, const Handle(Geom_Transformation)&aTrsf, const Handle(Prs3d_Presentation)&aPresentation)
virtual Standard_EXPORT void Compute (const Handle(Prs3d_Projector)&aProjector, const Handle(Prs3d_Presentation)&aPresentation)
virtual Standard_EXPORT void Compute (const Handle(PrsMgr_PresentationManager3d)&aPresentationManager, const Handle(Prs3d_Presentation)&aPresentation, const Standard_Integer aMode=0)
virtual Standard_EXPORT void Compute (const Handle(PrsMgr_PresentationManager2d)&aPresentationManager, const Handle(Graphic2d_GraphicObject)&aPresentation, const Standard_Integer aMode=0)
Standard_EXPORT void ComputeProjEdgePresentation (const Handle(Prs3d_Presentation)&aPres, const TopoDS_Edge &anEdge, const Handle(Geom_Curve)&ProjCurve, const gp_Pnt &FirstP, const gp_Pnt &LastP, const Quantity_NameOfColor aColor=Quantity_NOC_PURPLE, const Standard_Real aWidth=2, const Aspect_TypeOfLine aProjTOL=Aspect_TOL_DASH, const Aspect_TypeOfLine aCallTOL=Aspect_TOL_DOT) const
Standard_EXPORT void ComputeProjVertexPresentation (const Handle(Prs3d_Presentation)&aPres, const TopoDS_Vertex &aVertex, const gp_Pnt &ProjPoint, const Quantity_NameOfColor aColor=Quantity_NOC_PURPLE, const Standard_Real aWidth=2, const Aspect_TypeOfMarker aProjTOM=Aspect_TOM_PLUS, const Aspect_TypeOfLine aCallTOL=Aspect_TOL_DOT) const
virtual Standard_EXPORT void Fill (const Handle(PrsMgr_PresentationManager)&aPresentationManager, const Handle(PrsMgr_Presentation)&aPresentation, const Standard_Integer aMode=0)
 High-level interface for controlling polygon offsets
.
Standard_EXPORT
PrsMgr_Presentations & 
Presentations ()
Standard_EXPORT void Update (const Standard_Integer aMode, const Standard_Boolean ClearOther)
Standard_EXPORT void Update (const Standard_Boolean AllModes=Standard_False)
 recomputes all presentations of the object.

virtual Standard_EXPORT void UpdateLocation (const Handle(SelectMgr_Selection)&aSelection)

Protected Attributes

Standard_Boolean hasOwnColor
Standard_Boolean hasOwnMaterial
Standard_Real myArrowSize
Standard_Boolean myArrowSizeIsDefined
Standard_Boolean myAutomaticPosition
Bnd_Box myBndBox
Aspect_TypeOfFacingModel myCurrentFacingModel
Handle_AIS_Drawer myDrawer
Standard_Integer myExtShape
Handle_Geom_Surface myFirstBasisSurf
Standard_Real myFirstOffset
gp_Pln myFirstPlane
AIS_KindOfSurface myFirstSurfType
TopoDS_Shape myFShape
Standard_Integer myHilightMode
Standard_Boolean myInfiniteState
Standard_Boolean myIsSetBndBox
TopLoc_Location myLocation
Quantity_Color myOwnColor
Graphic3d_NameOfMaterial myOwnMaterial
Standard_Real myOwnWidth
Handle_Geom_Plane myPlane
gp_Pnt myPosition
PrsMgr_Presentations myPresentations
Standard_Boolean myRecomputeEveryPrs
Handle_Geom_Surface mySecondBasisSurf
Standard_Real mySecondOffset
gp_Pln mySecondPlane
AIS_KindOfSurface mySecondSurfType
SelectMgr_SequenceOfSelection myselections
TopoDS_Shape mySShape
DsgPrs_ArrowSide mySymbolPrs
TCollection_ExtendedString myText
TColStd_ListOfInteger myToRecomputeModes
Standard_Real myTransparency
PrsMgr_TypeOfPresentation3d myTypeOfPresentation3d
Standard_Real myVal

Friends

class AIS_InteractiveContext
Standard_EXPORT void PrsMgr_Presentation3d::Compute (const Handle(Graphic3d_DataStructureManager)&aProjector, const Handle(Geom_Transformation)&TheTrsf, const Handle(Graphic3d_Structure)&aGivenStruct)
Standard_EXPORT
Handle_Graphic3d_Structure 
PrsMgr_Presentation3d::Compute (const Handle(Graphic3d_DataStructureManager)&aProjector, const Handle(Geom_Transformation)&TheTrsf)
Standard_EXPORT void PrsMgr_Presentation3d::Compute (const Handle(Graphic3d_DataStructureManager)&aProjector, const Handle(Graphic3d_Structure)&aGivenStruct)
Standard_EXPORT
Handle_Graphic3d_Structure 
PrsMgr_Presentation3d::Compute (const Handle(Graphic3d_DataStructureManager)&aProjector)
class PrsMgr_PresentationManager
class SelectMgr_SelectionManager

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index