casa
5.7.0-16
|
Simple class which represents a star as a point mass. More...
#include <Galaxy.h>
Public Member Functions | |
Star (casacore::Vector< casacore::Double > &position, casacore::Vector< casacore::Double > &velocity, casacore::Int xSize, casacore::Int ySize) | |
Constructor. More... | |
~Star () | |
Destructor. More... | |
void | draw (PixelCanvas *pixelCanvas) |
Draw the current position on the PixelCanvas. More... | |
void | applyForce (std::list< void * > &galaxyList, casacore::Double timeStep, casacore::Double dampingFactor) |
Compute new position by applying the forces of the Galaxies in the List. More... | |
void | rotate (casacore::Matrix< casacore::Double > &rotMatrix) |
Rotate position and velocity. More... | |
void | setPlotMode (Galaxy::PLOT_MODE newPlotMode) |
Set the plot mode. More... | |
void | setScale (casacore::Int xSize, casacore::Int ySize) |
Private Attributes | |
casacore::Vector < casacore::Double > | itsPosition |
Position of the Star. More... | |
casacore::Vector< casacore::Int > | oldPosition |
The last drawn position of the Star. More... | |
casacore::Vector< casacore::Int > | itsOffset |
Last offset applied to itsPosition. More... | |
casacore::Vector< casacore::Int > | itsPlotPosition |
Last offset applied to itsPosition. More... | |
casacore::Vector < casacore::Double > | itsVelocity |
Velocity of the Star. More... | |
casacore::Int | itsXSize |
casacore::Int | itsYSize |
casacore::uInt | itsDrawList |
Number of the draw list for the current PixelCanvas. More... | |
PixelCanvas * | itsPixelCanvas |
Temp to check if we are drawing on a new PixelCanvas. More... | |
Galaxy::PLOT_MODE | plotMode |
casacore::Bool | changedPlotMode |
casa::Star::Star | ( | casacore::Vector< casacore::Double > & | position, |
casacore::Vector< casacore::Double > & | velocity, | ||
casacore::Int | xSize, | ||
casacore::Int | ySize | ||
) |
Constructor.
casa::Star::~Star | ( | ) |
Destructor.
void casa::Star::applyForce | ( | std::list< void * > & | galaxyList, |
casacore::Double | timeStep, | ||
casacore::Double | dampingFactor | ||
) |
Compute new position by applying the forces of the Galaxies in the List.
void casa::Star::draw | ( | PixelCanvas * | pixelCanvas | ) |
Draw the current position on the PixelCanvas.
void casa::Star::rotate | ( | casacore::Matrix< casacore::Double > & | rotMatrix | ) |
Rotate position and velocity.
void casa::Star::setPlotMode | ( | Galaxy::PLOT_MODE | newPlotMode | ) |
Set the plot mode.
void casa::Star::setScale | ( | casacore::Int | xSize, |
casacore::Int | ySize | ||
) |
|
private |
|
private |
Number of the draw list for the current PixelCanvas.
|
private |
|
private |
Temp to check if we are drawing on a new PixelCanvas.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |