3
PDL::Graphics::TriD::Labels -- Text tools
7
my $l = new PDL::Graphics::TriD::Labels($lablepoints,
14
This module is experimental and the interface will probably change.
18
This module is used to write Labels on the graphs of TriD
22
Copyright (C) 1997 Tuomas J. Lukka (lukka@husc.harvard.edu).
23
2000 James P. Edwards (jedwards@inmet.gov.br)
24
All rights reserved. There is no warranty. You are allowed
25
to redistribute this software / documentation under certain
26
conditions. For details, see the file COPYING in the PDL
27
distribution. If this file is separated from the PDL distribution,
28
the copyright notice should be included in the file.
32
package PDL::Graphics::TriD::Labels;
33
use PDL::Graphics::OpenGL;
34
use PDL::Graphics::OpenGLQ;
35
use base qw/PDL::Graphics::TriD::GObject/;
38
my($this,$points) = @_;
39
glDisable(&GL_LIGHTING);
41
PDL::Graphics::OpenGLQ::gl_texts($points,$this->{Options}{Font},$this->{Options}{Strings});
42
glEnable(&GL_LIGHTING);
45
sub get_valid_options {
46
return {UseDefcols => 0, Font=>$PDL::Graphics::TriD::GL::fontbase, Strings => [] }