CogCADToRange ClassCognex VisionPro 9.8
Class that holds the properties and methods to open a CAD file and render the cad-shape into a range image.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.Implementation CogSerializableChangedEventBase
          Cognex.VisionPro.CAD CogCADToRange

Namespace: Cognex.VisionPro.CAD
Assembly: Cognex.VisionPro.CAD (in Cognex.VisionPro.CAD.dll) Version: 75.1.0.0
Syntax

[SerializableAttribute]
public class CogCADToRange : CogSerializableChangedEventBase, 
	IDisposable

The CogCADToRange type exposes the following members.

Constructors

  NameDescription
Public methodCogCADToRange 
Construct a default CogCADToRange object.
Public methodCogCADToRange(CogCADToRange)
Constructs a deep copy of the supplied CogCADToRange object.
Protected methodCogCADToRange(SerializationInfo, StreamingContext)
Serialization constructor for CogCADToRange object.
Top
Methods

  NameDescription
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose 
Destruct this CogCADToRange.
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute 
Opens the CAD file and renders a range image.
Public methodExecute(String, Cog3DBox)
Opens the CAD file and renders a range image.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetClassName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetComponentName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetConverter
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultEvent
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultProperty
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEditor
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetObjectData
Implements the GetObjectData method of the ISerializable interface.
(Inherited from CogSerializableObjectBase.)
Protected methodGetProperties 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetProperties( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetPropertyOwner
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone 
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Protected methodOnChanged(Int64)
This method should be called internally whenever the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Protected methodOnChanged(CogChangedEventArgs)
This method may be called internally whenever a derived object's state may have changed and the derived object expresses this change via a derived CogChangedEventArgs class.
(Inherited from CogSerializableChangedEventBase.)
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called, and raises the Changed event if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.)
Public methodSetProjection3DZAxisToNegativeCAD3DXAxis
This method replaces the Projection3DFromCAD3DTransform held by this operator. Projection3D z-axis will be in the same direction as CAD3D x-axis.

The CAD3D coordinate space in the range image is described as follows: z-axis goes to the left, y-axis goes up, and x-axis comes out of the yz-plane towards the viewer.

Public methodSetProjection3DZAxisToNegativeCAD3DYAxis
This method replaces the Projection3DFromCAD3DTransform held by this operator. Projection3D z-axis will be in the opposite direction of CAD3D y-axis.

The CAD3D coordinate space in the range image is described as follows: x-axis goes to the right, z-axis goes down, and y-axis comes out of the xz-plane towards the viewer.

Public methodSetProjection3DZAxisToNegativeCAD3DZAxis
This method replaces the Projection3DFromCAD3DTransform held by this operator. The Projection3D z-axis will be in the opposite direction of CAD3D z-axis.

The CAD3D coordinate space in the range image is described as follows: x-axis goes to the left, y-axis goes up, and z-axis goes into the xy-plane away from the viewer.

Public methodSetProjection3DZAxisToPositiveCAD3DXAxis
This method replaces the Projection3DFromCAD3DTransform held by this operator. Projection3D z-axis will be in the same direction as CAD3D x-axis.

The CAD3D coordinate space in the range image is described as follows: z-axis goes to the right, y-axis goes up, and x-axis goes into the yz-plane away from the viewer.

Public methodSetProjection3DZAxisToPositiveCAD3DYAxis
This method replaces the Projection3DFromCAD3DTransform held by this operator. Projection3D z-axis will be in the same direction as CAD3D y-axis.

The CAD3D coordinate space in the range image is described as follows: x-axis goes to the right, z-axis goes up, and y-axis goes into the xz-plane away from the viewer.

Public methodSetProjection3DZAxisToPositiveCAD3DZAxis
This method replaces the Projection3DFromCAD3DTransform held by this operator. The transform is set to an identity transform, meaning there is no rotation between CAD3D and Projection3D coordinate spaces.
Public methodSuspendChangedEvent
Temporarily suspends the raising of the Changed event. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfFileName
This bit will be set in the EventArgs of a Changed event every time the value returned by FileName may have changed.
Protected fieldStatic memberSfNextSf
NextSf state flag.
Public fieldStatic memberSfProjection3DFromCAD3DTransform
This bit will be set in the EventArgs of a Changed event every time the value returned by Projection3DFromCAD3DTransform may have changed.
Public fieldStatic memberSfRegion
This bit will be set in the EventArgs of a Changed event every time the value returned by Region may have changed.
Public fieldStatic memberSfRotationMode
This bit will be set in the EventArgs of a Changed event every time the value returned by RotationMode may have changed.
Public fieldStatic memberSfScaleX
This bit will be set in the EventArgs of a Changed event every time the value returned by ScaleX may have changed.
Public fieldStatic memberSfScaleY
This bit will be set in the EventArgs of a Changed event every time the value returned by ScaleY may have changed.
Public fieldStatic memberSfScaleZ
This bit will be set in the EventArgs of a Changed event every time the value returned by ScaleZ may have changed.
Public fieldStatic memberSfTimeout
This bit will be set in the EventArgs of a Changed event every time the value returned by Timeout may have changed.
Public fieldStatic memberSfTimeoutEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by TimeoutEnabled may have changed.
Public fieldStatic memberSfViewingDirection
This bit will be set in the EventArgs of a Changed event every time the value returned by ViewingDirection may have changed.
Top
Properties

  NameDescription
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
(Inherited from CogSerializableChangedEventBase.)
Public propertyFileName
Gets or sets the CAD file name.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyProjection3DFromCAD3DTransform
Gets or sets the 3D Rotation transform. The 3D rotation transform that can be used at runtime to map the shape.
Public propertyRegion
Gets or sets the 3D box region.
Public propertyRotationMode
Gets or sets the rotation mode. The rotation mode specifies which property to use at runtime: either use the ViewingDirection or use the explicit Projection3DFromCAD3DTransform.
Public propertyScaleX
Gets or sets the x scale.
Public propertyScaleY
Gets or sets the y scale.
Public propertyScaleZ
Gets or sets the z scale.
Public propertyStateFlags
Returns the complete set of state flags supported on this object. The flags may be indexed by name as shown in the following C# code snippet: if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from CogSerializableChangedEventBase.)
Public propertyTimeout
A maximum execution time allowed for the operator to render the range image. This value only applies if TimeoutEnabled is true.
Public propertyTimeoutEnabled
If true, the Timeout property limits the execution time. If false then the Timeout property is ignored.
Public propertyViewingDirection
A Cog3DVect3 that holds the 3D viewing direction specified in CAD3D. The vector points towards the viewer. It provides another way to define the rotation between CAD3D space and Projection3D space. The full rotation is defined as follows:
  • First, construct a plane that passes through the z-axis of CAD3D and the viewing direction.
  • Next, imagine a rotation axis that passes through the origin of CAD3D, perpendicular to the plane.
  • Projection3D space is obtained by rotating CAD3D space - but not the cad-shape itself - around the rotation axis until the original z-axis of CAD3D is coincident with the viewing direction vector.
Top
Events

  NameDescription
Public eventChanged
This event is raised when one or more parts of the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Top
See Also