GraphicComponentGroup Class |
Namespace: ABB.Robotics.RobotStudio.Stations
public class GraphicComponentGroup : GraphicComponent, IAttachableParent, IHasGraphicComponents
The GraphicComponentGroup type exposes the following members.
Name | Description | |
---|---|---|
GraphicComponentGroup |
Creates and initializes a new GraphicComponentGroup object.
|
Name | Description | |
---|---|---|
Attributes |
Returns a collection of dynamic attributes attached to the object
(Inherited from ProjectObject.) | |
Children |
Enumerates all child objects.
(Inherited from ProjectObject.) | |
ClipPlane |
Gets or sets a ClipPlane that will hide all geometry in the negative z space of its transform.
(Inherited from GraphicComponent.) | |
Color |
Gets or sets the color of the object in the graphics.
(Inherited from GraphicComponent.) | |
ContainingProject |
Returns the Project that this object is a part of, or null if it is
not part of a Project.
(Inherited from ProjectObject.) | |
Detectable |
Gets or sets a value indicating the the component can be detected by sensors.
(Inherited from GraphicComponent.) | |
DisplayName |
Gets the name of the the object that should be displayed in the GUI.
(Inherited from ProjectObject.) | |
Frames |
Gets a FrameCollection object that represents all the Frames on this object.
(Inherited from GraphicComponent.) | |
GfxData | (Inherited from GraphicComponent.) | |
GraphicComponents |
Gets a GraphicComponentCollection object that represents all the graphic components
on this GraphicComponentGroup object.
| |
InternalChildren | (Inherited from ProjectObject.) | |
InternalParent | (Inherited from ProjectObject.) | |
Library |
Returns the GraphicComponentLibrary that contains the definition of this component, or null.
(Inherited from GraphicComponent.) | |
Name |
Gets or sets the name of the object
(Inherited from ProjectObject.) | |
Opacity |
Gets or sets the opacity of the object.
(Inherited from GraphicComponent.) | |
Parent |
The Parent property returns a reference to the parent GraphicComponent object.
(Inherited from GraphicComponent.) | |
PickingEnabled |
Gets or sets if the component can be picked and selected in 3D graphic windows.
(Inherited from GraphicComponent.) | |
Transform |
Gets the Transform of the object.
(Inherited from GraphicComponent.) | |
TypeDisplayName |
Gets a localized name for the type of this object.
(Inherited from ProjectObject.) | |
UIVisible |
Gets or sets a value that indicates if this object should be displayed in GUI
such as an object browser.
(Inherited from ProjectObject.) | |
UniqueId |
Gets a persisted, globally unique identifier for this object, that can be used
to find the object using the GetObjectFromUniqueId(String) method.
(Inherited from ProjectObject.) | |
Visible |
Gets or sets whether the object should be displayed in the graphics or not.
(Inherited from GraphicComponent.) |
Name | Description | |
---|---|---|
AfterLoad | (Inherited from GraphicComponent.) | |
Attach |
Attaches a child object to this GraphicComponentGroup.
| |
Backup | (Inherited from ProjectObject.) | |
BeforeSave | (Inherited from ProjectObject.) | |
CanAttachChild |
Test if the supplied child can be attached.
| |
Copy |
Creates a deep copy of the object.
(Inherited from GraphicComponent.) | |
CopyInstance |
Creates a copy but keeps a connection to the definition of the GraphicComponent, typically in a Library definition.
(Inherited from GraphicComponent.) | |
Delete |
Deletes this object permanently.
(Inherited from GraphicComponent.) | |
DeleteGeometry |
Recursively deletes all CAD geometry.
(Inherited from GraphicComponent.) | |
DeleteGeometry(Boolean) | Obsolete. (Inherited from GraphicComponent.) | |
Detach |
Detaches a child object from this GraphicComponentGroup.
| |
DisconnectFromLibrary |
Moves the definition to the Station or Project. This causes the Library property to return Null.
(Inherited from GraphicComponent.) | |
Equals | (Inherited from Object.) | |
ExportXml(String) |
Exports this to an XML file
(Inherited from GraphicComponent.) | |
ExportXml(String, String) |
Exports this to an XML file
(Inherited from GraphicComponent.) | |
Finalize | (Inherited from Object.) | |
FindObjects |
Recursively finds object that satisfy a condition.
(Inherited from ProjectObject.) | |
GetBoundingBox(Boolean) |
Computes the (axis-aligned) bounding box for this object.
(Inherited from GraphicComponent.) | |
GetBoundingBox(Boolean, Vector3, Vector3) | Obsolete.
Computes the (axis-aligned) bounding box for this object.
(Inherited from GraphicComponent.) | |
GetBoundingBox(Boolean, IntPtr, IntPtr) | Obsolete. (Inherited from GraphicComponent.) | |
GetGfxChildren | (Inherited from GraphicComponent.) | |
GetGfxMatrix | (Inherited from GraphicComponent.) | |
GetHashCode | (Inherited from Object.) | |
GetMatrix | (Inherited from GraphicComponent.) | |
GetNormalToSurface | Obsolete. Calculates the closest point and the corresponding normal. (Inherited from GraphicComponent.) | |
GetType | (Inherited from Object.) | |
Highlight(Boolean) |
Highlights the object using the default highlight style and color.
(Inherited from GraphicComponent.) | |
Highlight(Boolean, Color) |
Highlights the object using a specified color.
(Inherited from GraphicComponent.) | |
MemberwiseClone | (Inherited from Object.) | |
MergeToPart |
Copies all geometry into a single Part.
| |
MergeToPart(IProgressCallback) |
Copies all geometry into a single Part.
| |
MoveDefinitionToLibrary |
Moves the definition to a new Library.
(Inherited from GraphicComponent.) | |
NotifyChange | (Inherited from ProjectObject.) | |
NotifyChange(ProjectObjectChangeType) | (Inherited from ProjectObject.) | |
OnCreatingObject | (Inherited from GraphicComponent.) | |
OnDelete | (Inherited from GraphicComponent.) | |
OnUndoRedo | (Inherited from GraphicComponent.) | |
Scale |
Scales all geometry uniformly around the origin of the group.
| |
SetMaterial |
Sets the material of the object.
(Inherited from GraphicComponent.) | |
SetMatrix | (Inherited from GraphicComponent.) | |
ToString | (Inherited from ProjectObject.) | |
TryGetNormalToSurface | Calculates the closest point and the corresponding normal. (Inherited from GraphicComponent.) |
Name | Description | |
---|---|---|
_childInstances | (Inherited from GraphicComponent.) | |
_clipPlane | (Inherited from GraphicComponent.) | |
_curUndoDeltaState | (Inherited from ProjectObject.) | |
_definition | (Inherited from GraphicComponent.) | |
_detectable | (Inherited from GraphicComponent.) | |
_frames | (Inherited from GraphicComponent.) | |
_pickingEnabled | (Inherited from GraphicComponent.) | |
_source | (Inherited from GraphicComponent.) | |
_sourceFileTime | (Inherited from GraphicComponent.) | |
_transformMat | (Inherited from GraphicComponent.) |
Project.UndoContext.BeginUndoStep("GraphicComponentGroupProperties"); try { Station station = Station.ActiveStation; // Create the GraphicComponentGroup. GraphicComponentGroup myGCGroup = new GraphicComponentGroup(); myGCGroup.Name = "myGCGroup"; // Add the GraphicComponentGroup to the GraphicComponents of the station. station.GraphicComponents.Add(myGCGroup); // Create a part. Part myPart1 = new Part(); myPart1.Name = "MyPart1"; // Create a box and add it to myPart1. Body box = Body.CreateSolidBox(new Matrix4(Vector3.XVector, 0.0), new Vector3(0.4, 0.4, 0.4)); box.Name = "MyBox"; myPart1.Bodies.Add(box); // Add myPart1 to myGCGroup. myGCGroup.GraphicComponents.Add(myPart1); // Create another part. Part myPart2 = new Part(); myPart2.Name = "MyPart2"; //Create a cylinder and add it to myPart2. Matrix4 origin = new Matrix4(new Vector3(0.5, 0.5, 0.5), 0.0); Body myCylinder = Body.CreateSolidCylinder(origin, 0.2, 1); myCylinder.Name = "myCylinder"; myPart2.Bodies.Add(myCylinder); // Add myPart1 to myGCGroup. myGCGroup.GraphicComponents.Add(myPart2); // Create a third part. Part myPart3 = new Part(); myPart3.Name = "MyPart3"; // Create a box and add it to myPart3. Body box2 = Body.CreateSolidBox(new Matrix4(Vector3.XVector, 0.0), new Vector3(0.1, 0.1, 0.1)); box2.Name = "MyBox_2"; myPart3.Bodies.Add(box2); // Add myPart3 to the station. station.GraphicComponents.Add(myPart3); // Attach myPart3 to myGCGroup, mount it on top of the cylinder, using an offset matrix. if (myGCGroup.CanAttachChild(myPart3)) { myGCGroup.Attach(myPart3, true, new Matrix4(new Vector3(0.0, 0.0, 1.0))); } else { Logger.AddMessage(new LogMessage("Could not attach myPart3 to myGCGroup")); } } catch { Project.UndoContext.CancelUndoStep(CancelUndoStepType.Rollback); throw; } finally { Project.UndoContext.EndUndoStep(); }