V_getCoordSystem
FunctionStore the scalings and position of the current coordinate system used for VectorLib plotting operations
Syntax C/C++#include <Vgraph.h>
void V_getCoordSystem( VCOORDSYSTEM *csys );
Pascal/Delphiuses Vgraph;
procedure V_getCoordSystem( var csys: VCOORDSYSTEM );
DescriptionIf one wants to "hop" between several coordinate systems, displayed in one and the same window, one has to store the specifications (position and scalings) of each coordinate system separately, using this function.
The address of a struct VCOORDSYSTEM is needed as the argument. VCOORDSYSTEM is defined in <Vgraph.h> (C/C++) or the unit Vgraph (Pascal/Delphi).
Example C/C++VCOORDSYSTEM csys1;
   ....
  /* create the first plot: */
V_setPlotRegion( 0, 0, 339, 200 );
VF_xyAutoPlot( X1, Y1, size1, PS_SOLID, LightGreen );
V_getCoordSystem( &csys1 ); /* store for later */
   /* create the second plot: */
V_setPlotRegion( 340, 0, 679, 200 );
VF_xyAutoPlot( X2, Y2, size2, PS_SOLID, LightRed );
   /* go back to the first plot: */
VF_setCoordSystem( &csys1 );
   /* add an additional DataPlot: */
VF_xyDataPlot( X1, Z1, size1, PS_SOLID, LightBlue );
Example Pascal/Delphivar cxyx1: VCOORDSYSTEM;
begin
   ....
     (* create the first plot: *)
   V_setPlotRegion( 0, 0, 339, 200 );
   VF_xyAutoPlot( X1, Y1, size1, PS_SOLID, LightGreen );
   V_getCoordSystem( csys1 ); (* store for later *)
      (* create the second plot: *)
   V_setPlotRegion( 340, 0, 679, 200 );
   VF_xyAutoPlot( X2, Y2, size2, PS_SOLID, LightRed );
      (* go back to the first plot: *)
   VF_setCoordSystem( csys1 );
      (* add an additional DataPlot: *)
   VF_xyDataPlot( X1, Z1, size1, PS_SOLID, LightBlue );
end;
Return valuenone
See alsoV_setCoordSystem,   V_setPlotRegion,   V_continuePlot

VectorLib Table of Contents  OptiVec home