[pdal] help - Compilation success :)
Jérôme Chatillon
J.Chatillon at terraimaging.nl
Fri Jan 6 06:31:50 EST 2012
About my first question (few minutes ago):
First question (maybe stupid): how can I know I get the options of a pdal::filter without using it ? Because I need:
- pdal::Stage& prevStage (but I don't have one)
- pdal::Option& options (this I can create an empty one)
--> Actualy, a pdal::filter as static functions s_getName() and s_getDescription() (automaticly implemented by SET_STAGE_NAME(name, description) ). So i get easily get the name and the description without instance of the class. About the default options i found this in StageBase.hpp:
/// Everyone must implement this. If you want to access the list of
/// options "statically", you are free to construct the stage with no
/// arguments and cal getDefaultOptions() on it -- there is no need
/// to call initialize(), so it should be a fast/safe operation.
///
/// @return The default options.
virtual const Options getDefaultOptions() const = 0;
So it's a virtual, not static. I tried : pdal::filters::Attribute::Attribute().getDefaultOptions(); but of course it's not correct :P
So how to get the default option withou filter instance ?
Thanks
Jérôme Chatillon
TerraImaging
Groenewoudsedijk 40
3528 BK Utrecht
The Netherlands
tel: +31 (0)30-686 616 7
fax: +31 (0)30-686 616 6
email: j.chatillon at terraimaging.nl
skype: terraimaging_jchatillon
De : Jérôme Chatillon
Date d'envoi : vendredi 6 janvier 2012 11:44
À : pdal at lists.osgeo.org
Objet : help - Compilation success :)
Hi,
I compiled PDAL from source, and start to 'play' with in my Qt project.
My first goals are:
- learn pipeline/stage using sources
- create my own filter(s)
First question (maybe stupid): how can I know I get the options of a pdal::filter without using it ? Because I need:
- pdal::Stage& prevStage (but I don't have one)
- pdal::Option& options (this I can create an empty one)
Cordialement,
Jérôme Chatillon
TerraImaging
Groenewoudsedijk 40
3528 BK Utrecht
The Netherlands
tel: +31 (0)30-686 616 7
fax: +31 (0)30-686 616 6
email: j.chatillon at terraimaging.nl
skype: terraimaging_jchatillon
More information about the pdal
mailing list