KlassenKlassenKlassenKlassen | | | | Operatoren

gen_random_regionsgen_random_regionsGenRandomRegionsgen_random_regionsGenRandomRegionsGenRandomRegions (Operator)

Name

gen_random_regionsgen_random_regionsGenRandomRegionsgen_random_regionsGenRandomRegionsGenRandomRegions — Erzeugen zufälliger Regionen wie Kreise, Rechtecke und Ellipsen.

Signatur

gen_random_regions( : Regions : Type, WidthMin, WidthMax, HeightMin, HeightMax, PhiMin, PhiMax, NumRegions, Width, Height : )

Herror gen_random_regions(Hobject* Regions, const char* Type, double WidthMin, double WidthMax, double HeightMin, double HeightMax, double PhiMin, double PhiMax, const Hlong NumRegions, const Hlong Width, const Hlong Height)

Herror T_gen_random_regions(Hobject* Regions, const Htuple Type, const Htuple WidthMin, const Htuple WidthMax, const Htuple HeightMin, const Htuple HeightMax, const Htuple PhiMin, const Htuple PhiMax, const Htuple NumRegions, const Htuple Width, const Htuple Height)

Herror gen_random_regions(Hobject* Regions, const HTuple& Type, const HTuple& WidthMin, const HTuple& WidthMax, const HTuple& HeightMin, const HTuple& HeightMax, const HTuple& PhiMin, const HTuple& PhiMax, const HTuple& NumRegions, const HTuple& Width, const HTuple& Height)

HRegionArray HRegionArray::GenRandomRegions(const HTuple& Type, const HTuple& WidthMin, const HTuple& WidthMax, const HTuple& HeightMin, const HTuple& HeightMax, const HTuple& PhiMin, const HTuple& PhiMax, const HTuple& NumRegions, const HTuple& Width, const HTuple& Height)

void GenRandomRegions(HObject* Regions, const HTuple& Type, const HTuple& WidthMin, const HTuple& WidthMax, const HTuple& HeightMin, const HTuple& HeightMax, const HTuple& PhiMin, const HTuple& PhiMax, const HTuple& NumRegions, const HTuple& Width, const HTuple& Height)

void HRegion::GenRandomRegions(const HString& Type, const HTuple& WidthMin, const HTuple& WidthMax, const HTuple& HeightMin, const HTuple& HeightMax, const HTuple& PhiMin, const HTuple& PhiMax, Hlong NumRegions, Hlong Width, Hlong Height)

void HRegion::GenRandomRegions(const HString& Type, double WidthMin, double WidthMax, double HeightMin, double HeightMax, double PhiMin, double PhiMax, Hlong NumRegions, Hlong Width, Hlong Height)

void HRegion::GenRandomRegions(const char* Type, double WidthMin, double WidthMax, double HeightMin, double HeightMax, double PhiMin, double PhiMax, Hlong NumRegions, Hlong Width, Hlong Height)

void HOperatorSetX.GenRandomRegions(
[out] IHUntypedObjectX*Regions, [in] VARIANT Type, [in] VARIANT WidthMin, [in] VARIANT WidthMax, [in] VARIANT HeightMin, [in] VARIANT HeightMax, [in] VARIANT PhiMin, [in] VARIANT PhiMax, [in] VARIANT NumRegions, [in] VARIANT Width, [in] VARIANT Height)

void HRegionX.GenRandomRegions(
[in] BSTR Type, [in] VARIANT WidthMin, [in] VARIANT WidthMax, [in] VARIANT HeightMin, [in] VARIANT HeightMax, [in] VARIANT PhiMin, [in] VARIANT PhiMax, [in] Hlong NumRegions, [in] Hlong Width, [in] Hlong Height)

static void HOperatorSet.GenRandomRegions(out HObject regions, HTuple type, HTuple widthMin, HTuple widthMax, HTuple heightMin, HTuple heightMax, HTuple phiMin, HTuple phiMax, HTuple numRegions, HTuple width, HTuple height)

void HRegion.GenRandomRegions(string type, HTuple widthMin, HTuple widthMax, HTuple heightMin, HTuple heightMax, HTuple phiMin, HTuple phiMax, int numRegions, int width, int height)

void HRegion.GenRandomRegions(string type, double widthMin, double widthMax, double heightMin, double heightMax, double phiMin, double phiMax, int numRegions, int width, int height)

Beschreibung

gen_random_regionsgen_random_regionsGenRandomRegionsgen_random_regionsGenRandomRegionsGenRandomRegions dient zum Erzeugen von Kreisen, Rechtecken und Ellipsen, deren Parameter zufällig bestimmt werden. Es wird jeweils nur eine Unter- bzw. Obergrenze angegeben. Die Position ist immer zufällig und kann nicht über Parameter bestimmt werden. Der Parameter NumRegionsNumRegionsNumRegionsNumRegionsNumRegionsnumRegions gibt an wie viele Regionen erzeugt werden sollen.

Parallelisierung

Parameter

RegionsRegionsRegionsRegionsRegionsregions (output_object)  region-array objectHRegionHRegionHRegionArrayHRegionXHobject *

Erzeugte Regionen.

TypeTypeTypeTypeTypetype (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Art der zu erzeugenden Regionen.

Defaultwert: 'circle' "circle" "circle" "circle" "circle" "circle"

Werteliste: 'circle'"circle""circle""circle""circle""circle", 'ellipse'"ellipse""ellipse""ellipse""ellipse""ellipse", 'rectangle1'"rectangle1""rectangle1""rectangle1""rectangle1""rectangle1", 'rectangle2'"rectangle2""rectangle2""rectangle2""rectangle2""rectangle2", 'ring'"ring""ring""ring""ring""ring"

WidthMinWidthMinWidthMinWidthMinWidthMinwidthMin (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Minimale Breite der Region.

Defaultwert: 10.0

Wertevorschläge: 1.0, 3.0, 5.0, 10.0, 20.0, 40.0, 80.0

Typischer Wertebereich: 1.0 ≤ WidthMin WidthMin WidthMin WidthMin WidthMin widthMin ≤ 511.0 (lin)

Minimale Schrittweite: 1.0

Empfohlene Schrittweite: 10.0

Restriktion: WidthMin > 0

WidthMaxWidthMaxWidthMaxWidthMaxWidthMaxwidthMax (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Maximale Breite der Region.

Defaultwert: 20.0

Wertevorschläge: 1.0, 3.0, 5.0, 10.0, 20.0, 40.0, 80.0

Typischer Wertebereich: 1.0 ≤ WidthMax WidthMax WidthMax WidthMax WidthMax widthMax ≤ 511.0 (lin)

Minimale Schrittweite: 1.0

Empfohlene Schrittweite: 10.0

Restriktion: WidthMax > 0

HeightMinHeightMinHeightMinHeightMinHeightMinheightMin (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Minimale Höhe der Region.

Defaultwert: 10.0

Wertevorschläge: 1.0, 3.0, 5.0, 10.0, 20.0, 40.0, 80.0

Typischer Wertebereich: 1.0 ≤ HeightMin HeightMin HeightMin HeightMin HeightMin heightMin ≤ 511.0 (lin)

Minimale Schrittweite: 1.0

Empfohlene Schrittweite: 10.0

Restriktion: HeightMin > 0

HeightMaxHeightMaxHeightMaxHeightMaxHeightMaxheightMax (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Maximale Höhe der Region.

Defaultwert: 30.0

Wertevorschläge: 1.0, 3.0, 5.0, 10.0, 20.0, 40.0, 80.0

Typischer Wertebereich: 1.0 ≤ HeightMax HeightMax HeightMax HeightMax HeightMax heightMax ≤ 511.0 (lin)

Minimale Schrittweite: 1.0

Empfohlene Schrittweite: 10.0

Restriktion: HeightMax > 0

PhiMinPhiMinPhiMinPhiMinPhiMinphiMin (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Minimaler Rotationswinkel der Region.

Defaultwert: -0.7854

Wertevorschläge: 0.0, 0.1, 0.3, 0.6, 0.9, 1.2, 1.5

Typischer Wertebereich: 0.0 ≤ PhiMin PhiMin PhiMin PhiMin PhiMin phiMin ≤ 6.28 (lin)

Minimale Schrittweite: 0.001

Empfohlene Schrittweite: 0.10

Restriktion: PhiMin > 0

PhiMaxPhiMaxPhiMaxPhiMaxPhiMaxphiMax (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Maximaler Rotationswinkel der Region.

Defaultwert: 0.7854

Wertevorschläge: 0.0, 0.1, 0.3, 0.6, 0.9, 1.2, 1.5

Typischer Wertebereich: 0.0 ≤ PhiMax PhiMax PhiMax PhiMax PhiMax phiMax ≤ 6.28 (lin)

Minimale Schrittweite: 0.001

Empfohlene Schrittweite: 0.10

Restriktion: PhiMax > 0

NumRegionsNumRegionsNumRegionsNumRegionsNumRegionsnumRegions (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Anzahl der Regionen.

Defaultwert: 100

Wertevorschläge: 1, 5, 20, 100, 200, 500, 1000, 2000

Typischer Wertebereich: 1 ≤ NumRegions NumRegions NumRegions NumRegions NumRegions numRegions ≤ 2000 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Restriktion: NumRegions > 0

WidthWidthWidthWidthWidthwidth (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Maximale horizontale Ausdehnung.

Defaultwert: 512

Wertevorschläge: 128, 256, 512, 1024

Typischer Wertebereich: 1 ≤ Width Width Width Width Width width ≤ 1024 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Restriktion: Width > 0

HeightHeightHeightHeightHeightheight (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Maximale vertikale Ausdehnung.

Defaultwert: 512

Wertevorschläge: 128, 256, 512, 1024

Typischer Wertebereich: 1 ≤ Height Height Height Height Height height ≤ 1024 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Restriktion: Height > 0

Ergebnis

Sind die Parameterwerte korrekt, dann liefert gen_random_regionsgen_random_regionsGenRandomRegionsgen_random_regionsGenRandomRegionsGenRandomRegions den Wert 2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung durchgeführt. Das Clipping am aktuellen Bildformat wird durch set_system('clip_region',<'true'/'false'>)set_system("clip_region",<"true"/"false">)SetSystem("clip_region",<"true"/"false">)set_system("clip_region",<"true"/"false">)SetSystem("clip_region",<"true"/"false">)SetSystem("clip_region",<"true"/"false">) festgelegt.

Nachfolger

paint_regionpaint_regionPaintRegionpaint_regionPaintRegionPaintRegion

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren