Commit f3add4e3 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

proceeding

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 1693
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 654365bf
# this is <Makefile>
# ----------------------------------------------------------------------------
# ($Id: Makefile,v 1.11 2005-03-21 09:38:32 tforb Exp $)
# ($Id: Makefile,v 1.12 2005-04-28 15:44:56 tforb Exp $)
#
# 05/06/2001 by Thomas Forbriger (IMGF Frankfurt)
#
......@@ -18,7 +18,7 @@ PGPLOTLIB=-lcpgplot -lpgplot77 -lg2c -lm -lX11 -L$(SERVERLIBDIR) \
-L/usr/X11/lib
CPPFLAGS=-I$(LOCINCLUDEDIR) -I$(SERVERINCLUDEDIR)
HEADERS=pgplotCpp.h spcpgplotCpp.h xpgplotCpp.h
HEADERS=pgplotCpp.h spcpgplotCpp.h xpgplotCpp.h affpgplot.h
CODE=xpgplotCpp.cc
$(CODE:.cc=.o): $(HEADERS)
......
/*! \file affpgplot.h
* \brief pgplot functions supporting aff containers (prototypes)
*
* ----------------------------------------------------------------------------
*
* $Id: affpgplot.h,v 1.1 2005-04-28 15:44:56 tforb Exp $
* \author Thomas Forbriger
* \date 28/04/2005
*
* pgplot functions supporting aff containers (prototypes)
*
* Copyright (c) 2005 by Thomas Forbriger (BFO Schiltach)
*
* REVISIONS and CHANGES
* - 28/04/2005 V1.0 Thomas Forbriger
*
* ============================================================================
*/
// include guard
#ifndef TF_AFFPGPLOT_H_VERSION
#define TF_AFFPGPLOT_H_VERSION \
"TF_AFFPGPLOT_H V1.0"
#define TF_AFFPGPLOT_H_CVSID \
"$Id: affpgplot.h,v 1.1 2005-04-28 15:44:56 tforb Exp $"
namespace pgplot {
//! here we provide support for aff containers
namespace aff {
//! transform matrix for gray shade plot function
typedef aff::SimpleRigidArray<float, 6> Ttransform;
//! function to plot gray image
template<class C>
pgplot::basic_device& gray(pgplot::basic_device& dev,
const C& c,
const pgplot::Trange<float>&,
const Ttransform& tr)
{
return(dev);
}
} // namespace aff
} // namespace pgplot
#endif // TF_AFFPGPLOT_H_VERSION (includeguard)
/* ----- END OF affpgplot.h ----- */
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: pgplotCpp.h,v 1.17 2002-02-26 19:33:03 forbrig Exp $
* $Id: pgplotCpp.h,v 1.18 2005-04-28 15:44:56 tforb Exp $
*
* Copyright (c) 2001 by Thomas Forbriger (IMGF Frankfurt)
*
......@@ -36,7 +36,7 @@
#ifndef TF_PGPLOTCPP_H_
//! include guard
#define TF_PGPLOTCPP_H_ \
"$Id: pgplotCpp.h,v 1.17 2002-02-26 19:33:03 forbrig Exp $"
"$Id: pgplotCpp.h,v 1.18 2005-04-28 15:44:56 tforb Exp $"
/*! \brief contains all pgplot stuff
*
......@@ -285,12 +285,19 @@ class basic_device {
//! define PGPLOT window and axis
basic_device& env(const float &xmin, const float &xmax,
const float &ymin, const float &ymax,
const int &just, const int &axis)
const int &just=0, const int &axis=0)
{
this->select();
cpgenv(xmin, xmax, ymin, ymax, just, axis);
return(*this);
}
//! define PGPLOT window and axis
basic_device& env(const Trect rect,
const int &just=0, const int &axis=0)
{
this->env(rect.x.min, rect.x.max, rect.y.min, rect.y.max, just, axis);
return(*this);
}
//! erase total panel
basic_device& eras(void)
{ this->select(); cpgeras(); return(*this); }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment