Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Constraint3dBase Struct Reference

#include <Constraint3dCoreApi.h>

Inheritance diagram for Constraint3dBase:
RefCountedBase RefCounted< IRefCounted > IRefCounted CoincidentConstraint3d ConcentricConstraint3d Dimension3dBase FixedConstraint3d ParallelConstraint3d PerpendicularConstraint3d TangentConstraint3d Angle3dConstraint DistanceDimension3d

Public Types

enum  Status {
  DCM3_D_UNKNOWN, DCM3_D_OVER_DEFINED, DCM3_D_NOT_CONSISTENT, DCM3_D_NOT_CONSISTENT_DIMENSIONS,
  DCM3_D_NOT_CONSISTENT_OTHER, DCM3_D_NOT_CONSISTENT_UNKNOWN, DCM3_D_NOT_CHANGED, DCM3_D_BETWEEN_SET_MEMBERS,
  DCM3_D_BETWEEN_FIXED, DCM3_D_NOT_SOLVED, DCM3_D_SOLVED, Redundant = 0xffff
}
 
enum  FlagMasks { FlagMask_SurfaceOrientation = 0x0003 << 0, FlagMask_GroupLock = 0x0001 << 2, FlagMask_HalfSpace1 = 0x0003 << 4, FlagMask_HalfSpace2 = 0x0003 << 6 }
 

Public Member Functions

virtual BentleyStatus _Extract (DataInternalizer &source, DgnModelRefR modelRef, Constraint3dBodyCacheP bodyCache)
 
virtual BentleyStatus _Save (DataExternalizer &sink)
 
virtual bool _DoEditValue () const
 
virtual bool _IsDirected () const
 
virtual bool _IsDimension () const
 
virtual void _Draw (ViewContextR viewContext, DgnModelRefR) const
 
virtual double _GetValue () const
 
virtual void _SetValue (double value)
 
virtual WString _GetVariableAccess () const
 
virtual void _SetVariableAccess (WStringCR variableAccess)
 
virtual bool _DisplayMarkers (ViewContextR viewContext) const
 
Constraint3dType GetType () const
 
Status GetStatus () const
 
void SetStatus (Status status)
 
UInt32 GetFlags () const
 
void SetFlags (UInt32 flags)
 
T_GeometryIds const & GetGeometryIds () const
 
void SetGeometryIds (T_GeometryIds const &geometryIds)
 
SurfaceOrientation GetSurfaceOrientation () const
 
void SetSurfaceOrientation (SurfaceOrientation orientation)
 
Constraint3dHalfSpace GetHalfSpace1 () const
 
Constraint3dHalfSpace GetHalfSpace2 () const
 
void SetHalfSpace1 (Constraint3dHalfSpace halfSpace)
 
void SetHalfSpace2 (Constraint3dHalfSpace halfSpace)
 
bool GetGroupLock () const
 
CONSTRAINT3DCORE_EXPORT void SetGroupLock (bool groupLock)
 
bool HasBoundVariable () const
 
CONSTRAINT3DCORE_EXPORT bool IsRedundant (Constraint3dBaseCR other) const
 
CONSTRAINT3DCORE_EXPORT bool HasElementRef (ElementRefP elementRef) const
 
CONSTRAINT3DCORE_EXPORT void GetElementRefs (T_StdElementRefSet &elementRefs) const
 
CONSTRAINT3DCORE_EXPORT
BentleyStatus 
GetRootRange (DRange3dR range) const
 
- Public Member Functions inherited from RefCounted< IRefCounted >
void * operator new (size_t size)
 
void operator delete (void *rawMemory, size_t size)
 
UInt32 AddRef () const
 
UInt32 Release () const
 
 RefCounted ()
 
 RefCounted (RefCounted const &rhs)
 
RefCountedoperator= (RefCounted const &rhs)
 
UInt32 GetRefCount () const
 

Static Public Member Functions

static CONSTRAINT3DCORE_EXPORT
Constraint3dPtr 
Create (Constraint3dType type)
 
static CONSTRAINT3DCORE_EXPORT
Constraint3dPtr 
Create (Constraint3dType type, T_GeometryIds const &geometryIds, UInt32 flags)
 

Protected Member Functions

 Constraint3dBase (Constraint3dType type)
 
- Protected Member Functions inherited from RefCounted< IRefCounted >
virtual ~RefCounted ()
 
- Protected Member Functions inherited from IRefCounted
virtual ~IRefCounted ()
 
void * operator new (size_t size)
 
void operator delete (void *rawMemory, size_t size)
 

Protected Attributes

Constraint3dType m_type
 
Status m_status
 
T_GeometryIds m_geometryIds
 
UInt32 m_flags
 

Member Enumeration Documentation

enum FlagMasks
Enumerator
FlagMask_SurfaceOrientation 
FlagMask_GroupLock 
FlagMask_HalfSpace1 
FlagMask_HalfSpace2 
enum Status
strong
Enumerator
DCM3_D_UNKNOWN 
DCM3_D_OVER_DEFINED 
DCM3_D_NOT_CONSISTENT 
DCM3_D_NOT_CONSISTENT_DIMENSIONS 
DCM3_D_NOT_CONSISTENT_OTHER 
DCM3_D_NOT_CONSISTENT_UNKNOWN 
DCM3_D_NOT_CHANGED 
DCM3_D_BETWEEN_SET_MEMBERS 
DCM3_D_BETWEEN_FIXED 
DCM3_D_NOT_SOLVED 
DCM3_D_SOLVED 
Redundant 

Constructor & Destructor Documentation

Constraint3dBase ( Constraint3dType  type)
protected

Member Function Documentation

virtual bool _DisplayMarkers ( ViewContextR  viewContext) const
virtual

Reimplemented in Dimension3dBase.

virtual bool _DoEditValue ( ) const
virtual

Reimplemented in Dimension3dBase.

virtual void _Draw ( ViewContextR  viewContext,
DgnModelRefR   
) const
virtual

Reimplemented in Angle3dConstraint, and DistanceDimension3d.

virtual BentleyStatus _Extract ( DataInternalizer &  source,
DgnModelRefR  modelRef,
Constraint3dBodyCacheP  bodyCache 
)
virtual

Reimplemented in Angle3dConstraint, and Dimension3dBase.

virtual double _GetValue ( ) const
virtual

Reimplemented in Dimension3dBase.

virtual WString _GetVariableAccess ( ) const
virtual

Reimplemented in Dimension3dBase.

Referenced by HasBoundVariable().

virtual bool _IsDimension ( ) const
virtual

Reimplemented in Dimension3dBase.

virtual bool _IsDirected ( ) const
virtual
virtual BentleyStatus _Save ( DataExternalizer &  sink)
virtual

Reimplemented in Angle3dConstraint, and Dimension3dBase.

virtual void _SetValue ( double  value)
virtual

Reimplemented in Dimension3dBase.

References BeAssert.

virtual void _SetVariableAccess ( WStringCR  variableAccess)
virtual

Reimplemented in Dimension3dBase.

References BeAssert.

static CONSTRAINT3DCORE_EXPORT Constraint3dPtr Create ( Constraint3dType  type)
static
static CONSTRAINT3DCORE_EXPORT Constraint3dPtr Create ( Constraint3dType  type,
T_GeometryIds const &  geometryIds,
UInt32  flags 
)
static
CONSTRAINT3DCORE_EXPORT void GetElementRefs ( T_StdElementRefSet &  elementRefs) const
UInt32 GetFlags ( ) const

References m_flags.

T_GeometryIds const& GetGeometryIds ( ) const

References m_geometryIds.

bool GetGroupLock ( ) const

References FlagMask_GroupLock, and m_flags.

Constraint3dHalfSpace GetHalfSpace1 ( ) const

References FlagMask_HalfSpace1, and m_flags.

Constraint3dHalfSpace GetHalfSpace2 ( ) const

References FlagMask_HalfSpace2, and m_flags.

CONSTRAINT3DCORE_EXPORT BentleyStatus GetRootRange ( DRange3dR  range) const
Status GetStatus ( ) const

References m_status.

SurfaceOrientation GetSurfaceOrientation ( ) const
Constraint3dType GetType ( ) const

References m_type.

bool HasBoundVariable ( ) const

References _GetVariableAccess().

CONSTRAINT3DCORE_EXPORT bool HasElementRef ( ElementRefP  elementRef) const
CONSTRAINT3DCORE_EXPORT bool IsRedundant ( Constraint3dBaseCR  other) const
void SetFlags ( UInt32  flags)

References m_flags.

void SetGeometryIds ( T_GeometryIds const &  geometryIds)

References m_geometryIds.

CONSTRAINT3DCORE_EXPORT void SetGroupLock ( bool  groupLock)
void SetHalfSpace1 ( Constraint3dHalfSpace  halfSpace)

References FlagMask_HalfSpace1, and m_flags.

void SetHalfSpace2 ( Constraint3dHalfSpace  halfSpace)

References FlagMask_HalfSpace2, and m_flags.

void SetStatus ( Status  status)

References m_status.

void SetSurfaceOrientation ( SurfaceOrientation  orientation)

Member Data Documentation

UInt32 m_flags
protected
T_GeometryIds m_geometryIds
protected

Referenced by GetGeometryIds(), and SetGeometryIds().

Status m_status
protected

Referenced by GetStatus(), and SetStatus().

Constraint3dType m_type
protected

Referenced by GetType().


The documentation for this struct was generated from the following file:

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.