casa
5.7.0-16
|
Simple class to represent a Galaxy as a collection of Stars. More...
#include <Galaxy.h>
Public Types | |
enum | PLOT_MODE { POSITION, VELOCITY } |
Public Member Functions | |
Galaxy (casacore::Vector< casacore::Double > &position, casacore::Vector< casacore::Double > &velocity, casacore::Double mass, casacore::Double size, casacore::uInt numStars, casacore::uInt numRings, casacore::Double inclination, casacore::Double positionAngle, casacore::Int xSize, casacore::Int ySize) | |
Constructor. More... | |
~Galaxy () | |
Destructor. More... | |
void | computeStep (std::list< void * > &galaxyList, casacore::Double timeStep, casacore::Double dampingFactor=1.0) |
Compute a new position, applying the force of the Galaxies in the List but do not update current position and velocity. More... | |
void | update () |
update position and velocity to new value More... | |
void | applyForceToStars (std::list< void * > &galaxyList, casacore::Double timeStep, casacore::Double dampingFactor) |
Compute a new position for the Stars in this Galaxy. More... | |
void | rotate (casacore::Matrix< casacore::Double > &rotMatrix) |
Rotate position and velocity. More... | |
void | draw (PixelCanvas *pixelCanvas) |
Draw the Galaxy on the PixelCanvas. More... | |
casacore::Double | force (casacore::Double distance) |
magnitude of the force for this galaxy More... | |
casacore::Double | getMass () |
Return the Mass of the Galaxy. More... | |
casacore::Vector < casacore::Double > & | getPosition () |
Return the position of the Galaxy. More... | |
casacore::Vector < casacore::Double > & | getVelocity () |
Return the Velocity of the Galaxy. More... | |
void | setPlotMode (Galaxy::PLOT_MODE plotMode) |
Set the plot mode. More... | |
void | setScale (casacore::Int xSize, casacore::Int ySize) |
Simple class to represent a Galaxy as a collection of Stars.
casa::Galaxy::Galaxy | ( | casacore::Vector< casacore::Double > & | position, |
casacore::Vector< casacore::Double > & | velocity, | ||
casacore::Double | mass, | ||
casacore::Double | size, | ||
casacore::uInt | numStars, | ||
casacore::uInt | numRings, | ||
casacore::Double | inclination, | ||
casacore::Double | positionAngle, | ||
casacore::Int | xSize, | ||
casacore::Int | ySize | ||
) |
Constructor.
casa::Galaxy::~Galaxy | ( | ) |
Destructor.
void casa::Galaxy::applyForceToStars | ( | std::list< void * > & | galaxyList, |
casacore::Double | timeStep, | ||
casacore::Double | dampingFactor | ||
) |
Compute a new position for the Stars in this Galaxy.
void casa::Galaxy::computeStep | ( | std::list< void * > & | galaxyList, |
casacore::Double | timeStep, | ||
casacore::Double | dampingFactor = 1.0 |
||
) |
Compute a new position, applying the force of the Galaxies in the List but do not update current position and velocity.
void casa::Galaxy::draw | ( | PixelCanvas * | pixelCanvas | ) |
Draw the Galaxy on the PixelCanvas.
casacore::Double casa::Galaxy::force | ( | casacore::Double | distance | ) |
magnitude of the force for this galaxy
casacore::Double casa::Galaxy::getMass | ( | ) |
Return the Mass of the Galaxy.
casacore::Vector<casacore::Double>& casa::Galaxy::getPosition | ( | ) |
Return the position of the Galaxy.
casacore::Vector<casacore::Double>& casa::Galaxy::getVelocity | ( | ) |
Return the Velocity of the Galaxy.
void casa::Galaxy::rotate | ( | casacore::Matrix< casacore::Double > & | rotMatrix | ) |
Rotate position and velocity.
void casa::Galaxy::setPlotMode | ( | Galaxy::PLOT_MODE | plotMode | ) |
Set the plot mode.
void casa::Galaxy::setScale | ( | casacore::Int | xSize, |
casacore::Int | ySize | ||
) |
void casa::Galaxy::update | ( | ) |
update position and velocity to new value
|
private |
|
private |
Number of the draw list for the current PixelCanvas.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |