casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casa::Star Class Reference

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::IntoldPosition
 The last drawn position of the Star. More...
 
casacore::Vector< casacore::IntitsOffset
 Last offset applied to itsPosition. More...
 
casacore::Vector< casacore::IntitsPlotPosition
 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...
 
PixelCanvasitsPixelCanvas
 Temp to check if we are drawing on a new PixelCanvas. More...
 
Galaxy::PLOT_MODE plotMode
 
casacore::Bool changedPlotMode
 

Detailed Description

Simple class which represents a star as a point mass.

Definition at line 144 of file Galaxy.h.

Constructor & Destructor Documentation

casa::Star::Star ( casacore::Vector< casacore::Double > &  position,
casacore::Vector< casacore::Double > &  velocity,
casacore::Int  xSize,
casacore::Int  ySize 
)

Constructor.

casa::Star::~Star ( )

Destructor.

Member Function Documentation

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 
)

Member Data Documentation

casacore::Bool casa::Star::changedPlotMode
private

Definition at line 195 of file Galaxy.h.

casacore::uInt casa::Star::itsDrawList
private

Number of the draw list for the current PixelCanvas.

Definition at line 188 of file Galaxy.h.

casacore::Vector<casacore::Int> casa::Star::itsOffset
private

Last offset applied to itsPosition.

Definition at line 177 of file Galaxy.h.

PixelCanvas* casa::Star::itsPixelCanvas
private

Temp to check if we are drawing on a new PixelCanvas.

Definition at line 191 of file Galaxy.h.

casacore::Vector<casacore::Int> casa::Star::itsPlotPosition
private

Last offset applied to itsPosition.

Definition at line 179 of file Galaxy.h.

casacore::Vector<casacore::Double> casa::Star::itsPosition
private

Position of the Star.

Definition at line 173 of file Galaxy.h.

casacore::Vector<casacore::Double> casa::Star::itsVelocity
private

Velocity of the Star.

Definition at line 182 of file Galaxy.h.

casacore::Int casa::Star::itsXSize
private

Definition at line 184 of file Galaxy.h.

casacore::Int casa::Star::itsYSize
private

Definition at line 185 of file Galaxy.h.

casacore::Vector<casacore::Int> casa::Star::oldPosition
private

The last drawn position of the Star.

Definition at line 175 of file Galaxy.h.

Galaxy::PLOT_MODE casa::Star::plotMode
private

Definition at line 193 of file Galaxy.h.


The documentation for this class was generated from the following file: