set_scene_3d_instance_paramT_set_scene_3d_instance_paramSetScene3dInstanceParamSetScene3dInstanceParam (Operator)

Name

set_scene_3d_instance_paramT_set_scene_3d_instance_paramSetScene3dInstanceParamSetScene3dInstanceParam — Setzen von Parameter einer Instanz in einer 3D-Szene.

Signatur

set_scene_3d_instance_param( : : Scene3D, InstanceIndex, GenParamName, GenParamValue : )

Herror T_set_scene_3d_instance_param(const Htuple Scene3D, const Htuple InstanceIndex, const Htuple GenParamName, const Htuple GenParamValue)

void SetScene3dInstanceParam(const HTuple& Scene3D, const HTuple& InstanceIndex, const HTuple& GenParamName, const HTuple& GenParamValue)

void HScene3D::SetScene3dInstanceParam(const HTuple& InstanceIndex, const HTuple& GenParamName, const HTuple& GenParamValue) const

void HScene3D::SetScene3dInstanceParam(Hlong InstanceIndex, const HTuple& GenParamName, const HTuple& GenParamValue) const

static void HOperatorSet.SetScene3dInstanceParam(HTuple scene3D, HTuple instanceIndex, HTuple genParamName, HTuple genParamValue)

void HScene3D.SetScene3dInstanceParam(HTuple instanceIndex, HTuple genParamName, HTuple genParamValue)

void HScene3D.SetScene3dInstanceParam(int instanceIndex, HTuple genParamName, HTuple genParamValue)

Beschreibung

set_scene_3d_instance_paramset_scene_3d_instance_paramSetScene3dInstanceParamSetScene3dInstanceParamSetScene3dInstanceParam setzt die Parameter der Instanz mit dem Index InstanceIndexInstanceIndexInstanceIndexInstanceIndexinstanceIndex in der 3D-Szene Scene3DScene3DScene3DScene3Dscene3D. Name und Wert eines Parameters müssen in GenParamNameGenParamNameGenParamNameGenParamNamegenParamName und GenParamValueGenParamValueGenParamValueGenParamValuegenParamValue übergeben werden. Alle Parameter werden auf alle Instanzen angewandt.

Die folgenden Werte können gesetzt werden:

'visible'"visible""visible""visible""visible"

Sichtbarkeit des 3D-Objektmodells. Wird 'visible'"visible""visible""visible""visible" auf 'false'"false""false""false""false" gesetzt, wird diese Instanz nicht angezeigt.

Werte: 'true' oder 'false'

Defaultwert: 'true'

'attribute'"attribute""attribute""attribute""attribute"

Wählt explizit die Art und Weise aus, wie ein 3D-Objektmodell visualisiert wird.

Werte: 'auto', 'faces', 'primitive', 'points', 'lines'

Defaultwert: 'auto'

'color'"color""color""color""color":

Farbe des 3D-Objektmodells. Die verfügbaren Farben können mit dem Operator query_colorquery_colorQueryColorQueryColorQueryColor erfragt werden. Darüberhinaus kann die Farbe auch über ein RGB-Tripel in der Form '#rrggbb'"#rrggbb""#rrggbb""#rrggbb""#rrggbb" gesetzt werden, wobei 'rr', 'gg' und 'bb' jeweils hexadezimale Zahlen zwischen '00' und 'ff' sind.

Werte: 'red', 'green', ...

Defaultwert: 'white'

'alpha'"alpha""alpha""alpha""alpha":

Transluzenz des 3D-Objektmodells. Das Darstellen von 3D-Objektmodellen mit Transluzenz kleiner 1.0 kann zu signifikant höherer Laufzeit führen.

Werte: Fließkommawerte zwischen 0.0 (transparent) und 1.0 (opak).

Defaultwert: 1.0

'disp_pose'"disp_pose""disp_pose""disp_pose""disp_pose":

Flag, ob die Pose des 3D-Objektmodells visualisiert werden soll.

Werte: 'true' oder 'false'

Defaultwert: 'false'

'disp_lines'"disp_lines""disp_lines""disp_lines""disp_lines":

Flag, ob die Konturen der Polygone des 3D-Objektmodells angezeigt werden sollen.

Werte: 'true' oder 'false'

Defaultwert: 'false'

'disp_normals'"disp_normals""disp_normals""disp_normals""disp_normals":

Flag, ob die Oberflächennormalen der Polygone des 3D-Objektmodells angezeigt werden sollen.

Werte: 'true' oder 'false'

Defaultwert: 'false'

'line_color'"line_color""line_color""line_color""line_color":

Farbe der Konturen, falls 'disp_lines'"disp_lines""disp_lines""disp_lines""disp_lines" auf 'true'"true""true""true""true" gesetzt ist. Die verfügbaren Farben können mit dem Operator query_colorquery_colorQueryColorQueryColorQueryColor erfragt werden. Darüberhinaus kann die Farbe auch über ein RGB-Tripel in der Form '#rrggbb'"#rrggbb""#rrggbb""#rrggbb""#rrggbb" gesetzt werden, wobei 'rr', 'gg' und 'bb' jeweils hexadezimale Zahlen zwischen '00' und 'ff' sind.

Werte: 'red', 'green', ...

Defaultwert: Der Wert von 'color'"color""color""color""color"

'line_width'"line_width""line_width""line_width""line_width":

Setzt die Breite von Linien in Pixel.

Defaultwert: 1.0

'normal_color'"normal_color""normal_color""normal_color""normal_color":

Farbe der Oberflächennormalen, falls 'disp_normals'"disp_normals""disp_normals""disp_normals""disp_normals" auf 'true'"true""true""true""true" gesetzt ist. Die verfügbaren Farben können mit dem Operator query_colorquery_colorQueryColorQueryColorQueryColor erfragt werden. Darüberhinaus kann die Farbe auch über ein RGB-Tripel in der Form '#rrggbb'"#rrggbb""#rrggbb""#rrggbb""#rrggbb" gesetzt werden, wobei 'rr', 'gg' und 'bb' jeweils hexadezimale Zahlen zwischen '00' und 'ff' sind.

Werte: 'red', 'green', ...

Defaultwert: Der Wert von 'color'"color""color""color""color"

'point_size'"point_size""point_size""point_size""point_size":

Setzt den Durchmesser der Punkte.

Defaultwert: 3.5

'lut'"lut""lut""lut""lut":

Setzt die LUT, die die Werte des mit 'color_attrib'"color_attrib""color_attrib""color_attrib""color_attrib" gesetzten Attributes in Farben umwandelt. In der Dokumentation von set_lutset_lutSetLutSetLutSetLut befindet sich eine Liste der verfügbaren LUTs. Ist 'lut'"lut""lut""lut""lut" auf etwas anderes als 'default'"default""default""default""default" gesetzt, wird 'color'"color""color""color""color" ignoriert.

Defaultwert: 'default'

'color_attrib'"color_attrib""color_attrib""color_attrib""color_attrib":

Name eines Punktattributes, das für die Falschfarbendarstellung verwendet wird.

Falls ein Attribut gesetzt ist, wird die Farbe eines dargestellten 3D-Punktes durch den Attributwert des Punktes und die aktuell gesetzte LUT bestimmt (siehe 'lut'"lut""lut""lut""lut"). Auf diese Weise ist es möglich, Attribute in Falschfarben darzustellen.

Beispiel: Wenn 'color_attrib'"color_attrib""color_attrib""color_attrib""color_attrib" auf 'coord_z'"coord_z""coord_z""coord_z""coord_z" und 'lut'"lut""lut""lut""lut" auf 'color1'"color1""color1""color1""color1" gesetzt ist, werden die Z-Koordinaten von rot nach blau farbkodiert.

Falls 'lut'"lut""lut""lut""lut" auf 'default'"default""default""default""default" gesetzt ist, werden die Attributwerte verwendet, um die mit 'color'"color""color""color""color" gesetzte Farbe zu skalieren.

Falls 'lut'"lut""lut""lut""lut" auf etwas anderes gesetzt, werden die Attributwerte intern auf den Bereich [0,255] skaliert und als Eingabe für die LUT-Funktion verwendet.

Die Abbildung wird außerdem von den Parametern 'color_attrib_start'"color_attrib_start""color_attrib_start""color_attrib_start""color_attrib_start" und 'color_attrib_end'"color_attrib_end""color_attrib_end""color_attrib_end""color_attrib_end" bestimmt (siehe unten).

Falls Flächen dargestellt werden, wird ihre Farbe zwischen den Eckpunktfarben interpoliert.

Werte: 'none', '&distance', 'coord_x', 'coord_y', 'coord_z', user defined point attributes, or any other point attribute available.

Defaultwert: 'none'

'color_attrib_start'"color_attrib_start""color_attrib_start""color_attrib_start""color_attrib_start",'color_attrib_end'"color_attrib_end""color_attrib_end""color_attrib_end""color_attrib_end":

Der maßgebliche Wertebereich für das mit 'color_attrib'"color_attrib""color_attrib""color_attrib""color_attrib" eingestellte Attribut.

Die Attributwerte zwischen 'color_attrib_start'"color_attrib_start""color_attrib_start""color_attrib_start""color_attrib_start" und 'color_attrib_end'"color_attrib_end""color_attrib_end""color_attrib_end""color_attrib_end" werden auf den Anfang und das Ende der ausgewählten LUT skaliert. Attributwerte außerhalb des Bereiches werden beschnitten. Damit ist es möglich, einen festen Farbbereich darzustellen, der nicht durch Ausreißer verzerrt wird.

Bei 'auto'"auto""auto""auto""auto" wird der kleinste Attributwert auf den Anfang der LUT abgebildet, der größte Wert auf das Ende, es sei denn, 'color_attrib'"color_attrib""color_attrib""color_attrib""color_attrib" ist 'normal_x'"normal_x""normal_x""normal_x""normal_x", 'normal_y'"normal_y""normal_y""normal_y""normal_y" oder 'normal_z'"normal_z""normal_z""normal_z""normal_z". In diesem Fall, werden Start und Ende automatisch auf -1 und 1 gesetzt.

Der Startwert kann höher als der Endwert sein. In dem Fall wird die LUT umgedreht.

Werte: 0, 0.1, 1, 100, 255, ...

Defaultwerte: 'auto'

'red_channel_attrib'"red_channel_attrib""red_channel_attrib""red_channel_attrib""red_channel_attrib", 'green_channel_attrib'"green_channel_attrib""green_channel_attrib""green_channel_attrib""green_channel_attrib", 'blue_channel_attrib'"blue_channel_attrib""blue_channel_attrib""blue_channel_attrib""blue_channel_attrib":

Name eines Punktattributes, das für den Rot-, Grün-, oder Blaukanal verwendet wird.

Das ist besonders nützlich, wenn drei zusammengehörige Attribute verwendet werden, z.B. RGB-Farben oder Normalenvektoren. Auf diese Weise können Punkte mit farbigen Texturen, z.B. RGB-Sensor-Daten, dargestellt oder Punktnormalen in Falschfarben kodiert werden.

Um ein einzelnes Attribut in Falschfarben darzustellen, verwenden Sie bitte 'color_attrib'"color_attrib""color_attrib""color_attrib""color_attrib" (siehe oben).

Per Default wird angenommen, dass die Attributwerte zwischen 0 und 255 liegen. Falls die Attribute andere Wertebereiche haben, müssen zusätzlich die Parameter 'rgb_channel_attrib_start'"rgb_channel_attrib_start""rgb_channel_attrib_start""rgb_channel_attrib_start""rgb_channel_attrib_start" und 'rgb_channel_attrib_end'"rgb_channel_attrib_end""rgb_channel_attrib_end""rgb_channel_attrib_end""rgb_channel_attrib_end" gesetzt werden (siehe unten).

Falls nur 1 oder 2 Kanäle gesetzt sind, verwenden die übrigen Kanäle den RGB-Wert der mit 'color'"color""color""color""color" eingestellten Farbe.

Falls Flächen dargestellt werden, wird ihre Farbe zwischen den Eckpunktfarben interpoliert.

Werte: 'none', '&red','&green','&blue', 'normal_x', 'normal_y', 'normal_z', user defined point attributes, or any other point attribute available.

Defaultwerte: 'none'

'rgb_channel_attrib_start'"rgb_channel_attrib_start""rgb_channel_attrib_start""rgb_channel_attrib_start""rgb_channel_attrib_start", 'rgb_channel_attrib_end'"rgb_channel_attrib_end""rgb_channel_attrib_end""rgb_channel_attrib_end""rgb_channel_attrib_end":

Der maßgebliche Wertebereich für die mit 'red_channel_attrib'"red_channel_attrib""red_channel_attrib""red_channel_attrib""red_channel_attrib", 'green_channel_attrib'"green_channel_attrib""green_channel_attrib""green_channel_attrib""green_channel_attrib" und 'blue_channel_attrib'"blue_channel_attrib""blue_channel_attrib""blue_channel_attrib""blue_channel_attrib" eingestellten Attribute.

Diese Parameter definieren den Wertebereich, der auf die gesamten RGB-Kanäle skaliert wird. Das ist nützlich, wenn die Werte der Eingabeattribute nicht im Intervall [0,255] liegen.

Bei 'auto'"auto""auto""auto""auto" wird der kleinste Attributwert auf 0 abgebildet, der größte Wert auf 255, es sei denn, das Attribut ist 'normal_x'"normal_x""normal_x""normal_x""normal_x", 'normal_y'"normal_y""normal_y""normal_y""normal_y" oder 'normal_z'"normal_z""normal_z""normal_z""normal_z". In diesem Fall, werden Start und Ende automatisch auf -1 und 1 gesetzt.

Der Startwert kann höher als der Endwert sein. In dem Fall werden die RGB-Farben invertiert.

Der Bereich kann für jeden Kanal einzeln eingestellt werden, indem im Parameternamen das 'rgb'"rgb""rgb""rgb""rgb" durch den jeweiligen Kanal ersetzt wird, z.B. 'green_channel_attrib_start'"green_channel_attrib_start""green_channel_attrib_start""green_channel_attrib_start""green_channel_attrib_start".

Werte: 'auto', 0, 0.1, 1, 100, 255, ...

Defaultwerte: 0, 255

Ausführungsinformationen

Parameter

Scene3DScene3DScene3DScene3Dscene3D (input_control)  scene_3d HScene3D, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle der 3D-Szene.

InstanceIndexInstanceIndexInstanceIndexInstanceIndexinstanceIndex (input_control)  integer(-array) HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Index der Instanz.

GenParamNameGenParamNameGenParamNameGenParamNamegenParamName (input_control)  string-array HTupleHTupleHtuple (string) (string) (HString) (char*)

Namen der generischen Parameter.

Defaultwert: 'color' "color" "color" "color" "color"

Werteliste: 'alpha'"alpha""alpha""alpha""alpha", 'attribute'"attribute""attribute""attribute""attribute", 'blue_channel_attrib'"blue_channel_attrib""blue_channel_attrib""blue_channel_attrib""blue_channel_attrib", 'color'"color""color""color""color", 'color_attrib'"color_attrib""color_attrib""color_attrib""color_attrib", 'color_attrib_end'"color_attrib_end""color_attrib_end""color_attrib_end""color_attrib_end", 'color_attrib_start'"color_attrib_start""color_attrib_start""color_attrib_start""color_attrib_start", 'disp_lines'"disp_lines""disp_lines""disp_lines""disp_lines", 'disp_normals'"disp_normals""disp_normals""disp_normals""disp_normals", 'disp_pose'"disp_pose""disp_pose""disp_pose""disp_pose", 'green_channel_attrib'"green_channel_attrib""green_channel_attrib""green_channel_attrib""green_channel_attrib", 'line_color'"line_color""line_color""line_color""line_color", 'line_width'"line_width""line_width""line_width""line_width", 'lut'"lut""lut""lut""lut", 'normal_color'"normal_color""normal_color""normal_color""normal_color", 'point_size'"point_size""point_size""point_size""point_size", 'red_channel_attrib'"red_channel_attrib""red_channel_attrib""red_channel_attrib""red_channel_attrib", 'rgb_channel_attrib_end'"rgb_channel_attrib_end""rgb_channel_attrib_end""rgb_channel_attrib_end""rgb_channel_attrib_end", 'rgb_channel_attrib_start'"rgb_channel_attrib_start""rgb_channel_attrib_start""rgb_channel_attrib_start""rgb_channel_attrib_start", 'visible'"visible""visible""visible""visible"

GenParamValueGenParamValueGenParamValueGenParamValuegenParamValue (input_control)  string-array HTupleHTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)

Werte der generischen Parameter.

Defaultwert: 'green' "green" "green" "green" "green"

Wertevorschläge: 'true'"true""true""true""true", 'false'"false""false""false""false", 'coord_x'"coord_x""coord_x""coord_x""coord_x", 'coord_y'"coord_y""coord_y""coord_y""coord_y", 'coord_z'"coord_z""coord_z""coord_z""coord_z", 'normal_x'"normal_x""normal_x""normal_x""normal_x", 'normal_y'"normal_y""normal_y""normal_y""normal_y", 'normal_z'"normal_z""normal_z""normal_z""normal_z", 'red'"red""red""red""red", 'green'"green""green""green""green", 'blue'"blue""blue""blue""blue", 'auto'"auto""auto""auto""auto", 'faces'"faces""faces""faces""faces", 'primitive'"primitive""primitive""primitive""primitive", 'points'"points""points""points""points", 'lines'"lines""lines""lines""lines"

Ergebnis

Sind die Parameterwerte korrekt, dann liefert set_scene_3d_instance_paramset_scene_3d_instance_paramSetScene3dInstanceParamSetScene3dInstanceParamSetScene3dInstanceParam den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

add_scene_3d_instanceadd_scene_3d_instanceAddScene3dInstanceAddScene3dInstanceAddScene3dInstance

Siehe auch

set_scene_3d_paramset_scene_3d_paramSetScene3dParamSetScene3dParamSetScene3dParam

Modul

3D Metrology