Interface IPointGeneratorService
- All Known Implementing Classes:
PointGeneratorService
Usage:
IPointGeneratorService pservice = ... // OSGi
LissajousModel model = new LissajousModel();
... // Set values
IPointGenerator
-
Method Summary
Modifier and TypeMethodDescriptioncreateCompoundGenerator(List<IPointGenerator<? extends IScanPointGeneratorModel>> generators) Create a nested or compound generator.createCompoundGenerator(CompoundModel cmodel) Create a nested or compound generator from a list of models.<T> IPointGenerator<T> Deprecated.<T> IPointGenerator<T> createGenerator(T model) Used to create a point generator of a given typedefault <T extends IScanPointGeneratorModel>
IPointGenerator<CompoundModel> createGenerator(T model, Collection<IROI> regions) default <T extends IScanPointGeneratorModel>
IPointGenerator<CompoundModel> createGenerator(T model, List<IROI> regions, List<IMutator> mutators) Used to create a point generator of a given type<T extends IScanPointGeneratorModel>
IPointGenerator<CompoundModel> createGenerator(T model, List<IROI> regions, List<IMutator> mutators, float duration) default <T extends IScanPointGeneratorModel>
IPointGenerator<CompoundModel> createGenerator(T model, IROI region) Used to create a point generator of a given type.findRegions(IScanPointGeneratorModel model, Collection<ScanRegion> regions) Finds any ScanRegions limiting points in the axes of a model, then extracts all of their IROIs as a ListDeprecated.<T extends IScanPointGeneratorModel>
void
-
Method Details
-
createGenerator
Used to create a point generator of a given type- Parameters:
model-- Returns:
- Throws:
GeneratorException
-
createGenerator
default <T extends IScanPointGeneratorModel> IPointGenerator<CompoundModel> createGenerator(T model, IROI region) throws GeneratorException Used to create a point generator of a given type.Convenience implementation when using only one region of interest
If the model has a bounding box, it will be extended automatically to include the IROI defined. If this is not required, the bounding box of the model must be manually changed to either reflect this ROI's bounds or nullified (in which case the BoundingBox will be set to that which encompasses all IROIs.
- Parameters:
model-region- which implements IPointContainer (most useful) or IROI (less useful because IROI is in the data coordinates, no the motor coordinates)- Returns:
- Throws:
GeneratorException
-
createGenerator
default <T extends IScanPointGeneratorModel> IPointGenerator<CompoundModel> createGenerator(T model, Collection<IROI> regions) throws GeneratorException - Throws:
GeneratorException
-
createGenerator
default <T extends IScanPointGeneratorModel> IPointGenerator<CompoundModel> createGenerator(T model, List<IROI> regions, List<IMutator> mutators) throws GeneratorException Used to create a point generator of a given typeIf the model has a bounding box, it will be extended automatically to include the IROI defined. If this is not required, the bounding box of the model must be manually changed to either reflect this ROI's bounds or nullified (in which case the BoundingBox will be set to that which encompasses all IROIs.
- Parameters:
model-regions- a reference to zero or more IROIs for instance- Returns:
- Throws:
GeneratorException
-
createGenerator
<T extends IScanPointGeneratorModel> IPointGenerator<CompoundModel> createGenerator(T model, List<IROI> regions, List<IMutator> mutators, float duration) throws GeneratorException - Throws:
GeneratorException
-
createCompoundGenerator
IPointGenerator<CompoundModel> createCompoundGenerator(List<IPointGenerator<? extends IScanPointGeneratorModel>> generators) throws GeneratorException Create a nested or compound generator. Each generator in the varargs argument is another level to the loop.- Parameters:
generators-- Returns:
- Throws:
GeneratorException
-
createCompoundGenerator
IPointGenerator<CompoundModel> createCompoundGenerator(CompoundModel cmodel) throws GeneratorException Create a nested or compound generator from a list of models.- Parameters:
cmodel-- Returns:
- Throws:
GeneratorException
-
findRegions
Finds any ScanRegions limiting points in the axes of a model, then extracts all of their IROIs as a List- Parameters:
cmodel-models-- Returns:
- regions, never
null
-
getRegisteredGenerators
Deprecated.Each IPointGenerator must have a unique id which is used to refer to it in the user interface.- Returns:
-
createGenerator
@Deprecated(since="GDA 9.16") <T> IPointGenerator<T> createGenerator(String id) throws GeneratorException Deprecated.Creates a generator by id which has an model associated with it. The model may either be retrieved and have fields set or the generator may have a new model set in it.- Parameters:
id-- Returns:
- Throws:
GeneratorException
-
setBounds
-