Home | Trees | Indices | Help |
|
---|
|
SetupComponent class. This is an Abstract Base Class for all the components (optical or not) of the setup. Its methods may be implemented in daughter classes. *=== Attributes ===* SetupCount: class attribute, counts setup components. [integer] HRCenter: center of the principal face of the component in space. [3D vector] ARCenter: center of the secondary face of the component in space. [3D vector] HRNorm: normal unitary vector the this principal face, supposed to point outside the media. [3D vector] Thick: thickness of the component, counted in opposite direction to HRNorm. [float] Dia: diameter of the component. [float] Name: name of the component. [string] InBeams: list of all beams incident on the component. [list of GaussianBeam] OutBeams: list of all beams out Ref: reference string (for keeping track with the lab). [string]
|
|||
__metaclass__ Metaclass for defining Abstract Base Classes (ABCs). |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
SetupComponent initializer. Parameters are the attributes of the object to construct. Returns a setupComponent.
|
String representation of the component, when calling print(object).
|
Compute the refracted and reflected beams after interaction. Abstract (pure virtual) method.
|
Method to determine if component is hit by a beam. Abstract (pure virtual) method.
|
Method to return the list of strings to __str__. Abstract (pure virtual) method.
|
Move the component to (current position + (X, Y, Z)). This version only takes care of the HRCenter, version of sub classes take care of ARCenter if relevant. X, Y, Z: components of the translation vector. No return value. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 24 10:17:20 2017 | http://epydoc.sourceforge.net |