C# Class Canguro.Model.AreaElement

Inheritance: Element
显示文件 Open project: rforsbach/Treu-Structure Class Usage Examples

Private Properties

Property Type Description
AreaElement System
this Joint

Public Methods

Method Description
AreaElement ( AreaProps prototype ) : System

Al construir un AreaElement se necesita un prototipo de Propiedades, que define el tipo de elemento que se forma. De esta manera, después de construir el elemento no se le puede cambiar el tipo, además de que se pueden crear varios elementos con las mismas propiedades. La constructora clona al prototipo, de manera que un objeto externo puede crear varios elementos con el mismo objeto de propiedades.

AreaElement ( AreaProps prototype, Joint j1, Joint j2, Joint j3, Joint j4 ) : System

Constructora que inicializa el AreaElement con un clon de las propiedades indicadas y los nodos indicados. Si los nodos no están en la lista correspondiente, en la posición adecuada, se lanza una NullReferenceException Se recomienda usar esta constructora para minimizar el consumo de memoria en Model.Undo

RotationMatrix ( Microsoft &m ) : void

This method builds a rotation matrix from the global coordinate system to the local coordinate system formed by the local axes

Private Methods

Method Description
AreaElement ( AreaElement src, Joint j1, Joint j2, Joint j3, Joint j4 ) : System

Constructor de copia que clona un AreaElement a partir de src

this ( int index ) : Joint

Method Details

AreaElement() public method

Al construir un AreaElement se necesita un prototipo de Propiedades, que define el tipo de elemento que se forma. De esta manera, después de construir el elemento no se le puede cambiar el tipo, además de que se pueden crear varios elementos con las mismas propiedades. La constructora clona al prototipo, de manera que un objeto externo puede crear varios elementos con el mismo objeto de propiedades.
public AreaElement ( AreaProps prototype ) : System
prototype AreaProps El prototipo de propiedades.
return System

AreaElement() public method

Constructora que inicializa el AreaElement con un clon de las propiedades indicadas y los nodos indicados. Si los nodos no están en la lista correspondiente, en la posición adecuada, se lanza una NullReferenceException Se recomienda usar esta constructora para minimizar el consumo de memoria en Model.Undo
public AreaElement ( AreaProps prototype, Joint j1, Joint j2, Joint j3, Joint j4 ) : System
prototype AreaProps Prototype properties to copy from
j1 Joint
j2 Joint
j3 Joint
j4 Joint
return System

RotationMatrix() public method

This method builds a rotation matrix from the global coordinate system to the local coordinate system formed by the local axes
public RotationMatrix ( Microsoft &m ) : void
m Microsoft The rotation matrix to build
return void