In file mydocsrc/mvl_macv.h:

class mvl_screen_position

An auxiliary class used for displaying images

Public

A: Publicly manipulable variables.
IML_SINT XPos
The X position of the upper left corner.
IML_SINT YPos
The Y position of the upper left corner.
B: Constructors.
mvl_screen_position (void)
The zero-argument constructor for array allocations; XPos=YPos=0.
mvl_screen_position (IML_SINT X, IML_SINT Y)
The X, Y constructor.
mvl_screen_position (mvl_screen_position IML_REF SP)
The "make a copy" constructor.
C: Useful member functions.
void set (IML_SINT X, IML_SINT Y)
Set the X,Y positions
mvl_screen_position IML_REF operator*= (IML_DOUBLE Value)
Scale the vector by a constant
mvl_screen_position IML_REF vector (IML_DOUBLE Length, IML_DOUBLE Angle)
Set the position to a vector with Length and Angle
mvl_screen_position IML_REF operator+= (mvl_screen_position IML_REF Delta)
Add a vector to the current one
mvl_screen_position IML_REF operator= (scalar_rv IML_REF Rnd)
Randomize the position using the random number generator

Documentation

An auxiliary class used for displaying images. It provides a simple means of specifying the upper-left corner of an image together with some simplified manipulation routines. These include shifting by another position vector (an x,y offset) or randomizing with a random number generator.
A: Publicly manipulable variables.
It was simplest to allow direct manipulation of the X and Y positions. Be warned that negative values are invalid and will be clipped by the MAC-OS display software. That error will be silent.

B: Constructors.

C: Useful member functions.


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++