comparison transform/ModelTransformerFactory.h @ 933:d03b3d956358 warnfix_no_size_t

Merge from branch tony_integration
author Chris Cannam
date Wed, 18 Jun 2014 08:34:46 +0100
parents 06579b8ffb7b 85879408f665
children c7e9afcbf070
comparison
equal deleted inserted replaced
932:e06f03013f46 933:d03b3d956358
82 82
83 /** 83 /**
84 * Return the output model resulting from applying the named 84 * Return the output model resulting from applying the named
85 * transform to the given input model. The transform may still be 85 * transform to the given input model. The transform may still be
86 * working in the background when the model is returned; check the 86 * working in the background when the model is returned; check the
87 * output model's isReady completion status for more details. 87 * output model's isReady completion status for more details. To
88 * cancel a background transform, call abandon() on its model.
88 * 89 *
89 * If the transform is unknown or the input model is not an 90 * If the transform is unknown or the input model is not an
90 * appropriate type for the given transform, or if some other 91 * appropriate type for the given transform, or if some other
91 * problem occurs, return 0. Set message if there is any error or 92 * problem occurs, return 0. Set message if there is any error or
92 * warning to report. 93 * warning to report.
114 * use the same plugin, parameters, and programs. The plugin will 115 * use the same plugin, parameters, and programs. The plugin will
115 * be run once only, but more than one output will be harvested 116 * be run once only, but more than one output will be harvested
116 * (as appropriate). Models will be returned in the same order as 117 * (as appropriate). Models will be returned in the same order as
117 * the transforms were given. The plugin may still be working in 118 * the transforms were given. The plugin may still be working in
118 * the background when the model is returned; check the output 119 * the background when the model is returned; check the output
119 * models' isReady completion statuses for more details. 120 * models' isReady completion statuses for more details. To cancel
121 * a background transform, call abandon() on its model.
120 * 122 *
121 * If a transform is unknown or the transforms are insufficiently 123 * If a transform is unknown or the transforms are insufficiently
122 * closely related or the input model is not an appropriate type 124 * closely related or the input model is not an appropriate type
123 * for the given transform, or if some other problem occurs, 125 * for the given transform, or if some other problem occurs,
124 * return 0. Set message if there is any error or warning to 126 * return 0. Set message if there is any error or warning to
128 * processing. (For example, a transform that splits an output 130 * processing. (For example, a transform that splits an output
129 * into multiple one-per-bin models.) If an additionalModelHandler 131 * into multiple one-per-bin models.) If an additionalModelHandler
130 * is provided here, its moreModelsAvailable method will be called 132 * is provided here, its moreModelsAvailable method will be called
131 * when those models become available, and ownership of those 133 * when those models become available, and ownership of those
132 * models will be transferred to the handler. Otherwise (if the 134 * models will be transferred to the handler. Otherwise (if the
133 * handler is null) any such models will be discarded. 135 * handler is null) any such models will be discarded. Note that
136 * calling abandon() on any one of the models returned by
137 * transformMultiple is sufficient to cancel all background
138 * transform activity associated with these output models.
134 * 139 *
135 * The returned models are owned by the caller and must be deleted 140 * The returned models are owned by the caller and must be deleted
136 * when no longer needed. 141 * when no longer needed.
137 */ 142 */
138 std::vector<Model *> transformMultiple(const Transforms &transform, 143 std::vector<Model *> transformMultiple(const Transforms &transform,