Class Picture
A bitmap as a rectangular or rhombiod face in 3D space. This object is mainly used for illustration or
as a background in a model. It is a GeoObject and may be part of a model. It is defined by the bitmap
bits and the location in space.
Inheritance
System.Object
Picture
Implements
System.IComparable
System.ICloneable
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
[Serializable]
public class Picture : IGeoObjectImpl, IGeoObject, ILayer, IStyle, IOctTreeInsertable, IComparable, IFeedBack, ICloneable, ISerializable
Constructors
|
Improve this Doc
View Source
Picture()
Declaration
|
Improve this Doc
View Source
Picture(SerializationInfo, StreamingContext)
Declaration
protected Picture(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Fields
|
Improve this Doc
View Source
Constructor
Provide a delegate here if you want you Picture derived class to be
created each time CADability creates a Picture.
Declaration
public static Picture.ConstructionDelegate Constructor
Field Value
Properties
|
Improve this Doc
View Source
Bitmap
The bitmap, the contents of the Picture
Declaration
public Bitmap Bitmap { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Bitmap |
|
|
Improve this Doc
View Source
DirectionHeight
The location of the left side of the bitmap
Declaration
public GeoVector DirectionHeight { get; set; }
Property Value
|
Improve this Doc
View Source
DirectionWidth
The location of the lower baseline of the bitmap
Declaration
public GeoVector DirectionWidth { get; set; }
Property Value
|
Improve this Doc
View Source
Location
Position of the lower left point of the bitmap
Declaration
public GeoPoint Location { get; set; }
Property Value
|
Improve this Doc
View Source
Path
The path where the Bitmap is located. This value is not used by the Picture object and may have any content.
Usually it is the path and filename, especially when the object is beeing generated interactively
by CADability's user interface. Setting the value does NOT load the specified bitmap. This must be done
seperately by setting the Bitmap property
Declaration
public string Path { get; set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
PreferredStyle
Declaration
public override Style.EDefaultFor PreferredStyle { get; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
Clip(Plane, CompoundShape)
Clips the bitmap according to the provided shape and plane. The BitmapBits are replaced by
transparent pixels, the original bits are lost. Setting another clip area doesn't restore already clipped
pixels. (Ofcourse undo restores the original bitmap bits)
Declaration
public void Clip(Plane plane, CompoundShape shape)
Parameters
| Type |
Name |
Description |
| Plane |
plane |
The plane as a reference system for the shape
|
| CompoundShape |
shape |
The shape for the clip operation
|
|
Improve this Doc
View Source
Clone()
Declaration
public override IGeoObject Clone()
Returns
Overrides
|
Improve this Doc
View Source
Construct()
The only way to create a Picture. There are no public constructors for the Picture to assure
that this is the only way to construct a Picture.
Declaration
public static Picture Construct()
Returns
|
Improve this Doc
View Source
CopyGeometry(IGeoObject)
Declaration
public override void CopyGeometry(IGeoObject ToCopyFrom)
Parameters
Overrides
|
Improve this Doc
View Source
FindSnapPoint(SnapPointFinder)
Declaration
public override void FindSnapPoint(SnapPointFinder spf)
Parameters
Overrides
|
Improve this Doc
View Source
GetBoundingCube()
Declaration
public override BoundingCube GetBoundingCube()
Returns
Overrides
|
Improve this Doc
View Source
GetExtent(Projection, ExtentPrecision)
Declaration
public override BoundingRect GetExtent(Projection projection, ExtentPrecision extentPrecision)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetExtent(Double)
Declaration
public override BoundingCube GetExtent(double precision)
Parameters
| Type |
Name |
Description |
| System.Double |
precision |
|
Returns
Overrides
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Overrides
|
Improve this Doc
View Source
GetQuadTreeItem(Projection, ExtentPrecision)
Declaration
public override IQuadTreeInsertableZ GetQuadTreeItem(Projection projection, ExtentPrecision extentPrecision)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetShowProperties(IFrame)
Declaration
public override IShowProperty GetShowProperties(IFrame Frame)
Parameters
| Type |
Name |
Description |
| IFrame |
Frame |
|
Returns
Overrides
|
Improve this Doc
View Source
HitTest(ref BoundingCube, Double)
Declaration
public override bool HitTest(ref BoundingCube cube, double precision)
Parameters
| Type |
Name |
Description |
| BoundingCube |
cube |
|
| System.Double |
precision |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
HitTest(Projection, BoundingRect, Boolean)
Declaration
public override bool HitTest(Projection projection, BoundingRect rect, bool onlyInside)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
HitTest(Projection.PickArea, Boolean)
Declaration
public override bool HitTest(Projection.PickArea area, bool onlyInside)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
Modify(ModOp)
Declaration
public override void Modify(ModOp m)
Parameters
| Type |
Name |
Description |
| ModOp |
m |
|
Overrides
|
Improve this Doc
View Source
PaintTo3D(IPaintTo3D)
Declaration
public override void PaintTo3D(IPaintTo3D paintTo3D)
Parameters
Overrides
|
Improve this Doc
View Source
PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)
Declaration
public override void PaintTo3DList(IPaintTo3D paintTo3D, ICategorizedDislayLists lists)
Parameters
Overrides
|
Improve this Doc
View Source
Position(GeoPoint, GeoVector, Double)
Declaration
public override double Position(GeoPoint fromHere, GeoVector direction, double precision)
Parameters
Returns
| Type |
Description |
| System.Double |
|
Overrides
|
Improve this Doc
View Source
PrePaintTo3D(IPaintTo3D)
Declaration
public override void PrePaintTo3D(IPaintTo3D paintTo3D)
Parameters
Overrides
|
Improve this Doc
View Source
PrepareDisplayList(Double)
Declaration
public override void PrepareDisplayList(double precision)
Parameters
| Type |
Name |
Description |
| System.Double |
precision |
|
Overrides
|
Improve this Doc
View Source
Set(Bitmap, GeoPoint, GeoVector, GeoVector)
Sets the Data of the Bitmap.
Declaration
public void Set(Bitmap bitmap, GeoPoint location, GeoVector directionWidth, GeoVector directionHeight)
Parameters
| Type |
Name |
Description |
| System.Drawing.Bitmap |
bitmap |
The bitmap to be displayed
|
| GeoPoint |
location |
Position where the lower left point of the bitmap will be displayed
|
| GeoVector |
directionWidth |
Vector specifying the baseline of the bitmap
|
| GeoVector |
directionHeight |
Vector specifying the left side of the bitmap
|
|
Improve this Doc
View Source
SetBitmapNoUndo(Bitmap)
Declaration
public void SetBitmapNoUndo(Bitmap bmp)
Parameters
| Type |
Name |
Description |
| System.Drawing.Bitmap |
bmp |
|
|
Improve this Doc
View Source
SetHeight(Double, Boolean)
Declaration
public void SetHeight(double l, bool keepAspectRatio)
Parameters
| Type |
Name |
Description |
| System.Double |
l |
|
| System.Boolean |
keepAspectRatio |
|
|
Improve this Doc
View Source
SetWidth(Double, Boolean)
Declaration
public void SetWidth(double l, bool keepAspectRatio)
Parameters
| Type |
Name |
Description |
| System.Double |
l |
|
| System.Boolean |
keepAspectRatio |
|
Events
|
Improve this Doc
View Source
Constructed
Event beeing raised when a Picture object has been created.
Declaration
public static event Picture.ConstructedDelegate Constructed
Event Type
Implements
System.IComparable
System.ICloneable
System.Runtime.Serialization.ISerializable