|
OpenStructure
|
Namespaces | |
| detail | |
| impl | |
| map_iso | |
| py_gfx_obj | |
| RenderMode | |
Typedefs | |
| typedef unsigned char | ColorMask |
| typedef boost::shared_ptr< UniformColorOp > | UniformColorOpP |
| typedef std::vector< RenderMode::Type > | RenderModeTypes |
| typedef boost::shared_ptr< Entity > | EntityP |
| typedef boost::weak_ptr< Entity > | EntityW |
| typedef std::vector< GfxNodeP > | GfxNodeVector |
| typedef boost::shared_ptr< GfxNode > | GfxNodeP |
| typedef std::vector< GfxNodeP > | NodePtrList |
| typedef boost::shared_ptr< GfxObjBase > | GfxObjBaseP |
| typedef boost::shared_ptr< GfxObj > | GfxObjP |
| typedef std::vector< SpherePrim > | SpherePrimList |
| typedef std::vector< CylinderPrim > | CylinderPrimList |
| typedef std::vector< TextPrim > | TextPrimList |
| typedef boost::shared_ptr< MapIso > | MapIsoP |
| typedef boost::shared_ptr< MapSlab > | MapSlabP |
| typedef boost::shared_ptr< CartoonRenderOptions > | CartoonRenderOptionsPtr |
| typedef boost::shared_ptr< CPKRenderOptions > | CPKRenderOptionsPtr |
| typedef boost::shared_ptr< CustomRenderOptions > | CustomRenderOptionsPtr |
| typedef boost::shared_ptr< LineRenderOptions > | LineRenderOptionsPtr |
| typedef boost::shared_ptr< LineTraceRenderOptions > | LineTraceRenderOptionsPtr |
| typedef boost::shared_ptr< RenderOptions > | RenderOptionsPtr |
| typedef boost::shared_ptr< SimpleRenderOptions > | SimpleRenderOptionsPtr |
| typedef boost::shared_ptr< SlineRenderOptions > | SlineRenderOptionsPtr |
| typedef boost::shared_ptr< TraceRenderOptions > | TraceRenderOptionsPtr |
| typedef std::vector< SceneObserver * > | SceneObserverList |
| typedef boost::shared_ptr< Surface > | SurfaceP |
| typedef std::vector< SymmetryOp > | SymmetryOpList |
| typedef unsigned int | VertexID |
| typedef unsigned int | LineID |
| typedef unsigned int | TriID |
| typedef unsigned int | QuadID |
Enumerations | |
| enum | ColorBit { DETAIL_COLOR = 1 , MAIN_COLOR = 2 } |
| enum | InputDevice { INPUT_DEVICE_DUMMY =0 , INPUT_DEVICE_MOUSE } |
| enum | InputCommand { INPUT_COMMAND_NONE =0 , INPUT_COMMAND_ROTX , INPUT_COMMAND_ROTY , INPUT_COMMAND_ROTZ , INPUT_COMMAND_TRANSX , INPUT_COMMAND_TRANSY , INPUT_COMMAND_TRANSZ , INPUT_COMMAND_SLABN , INPUT_COMMAND_SLABF , INPUT_COMMAND_AUTOSLAB , INPUT_COMMAND_TOGGLE_FOG , INPUT_COMMAND_CUSTOM1 , INPUT_COMMAND_CUSTOM2 , INPUT_COMMAND_CUSTOM3 , INPUT_COMMAND_REBUILD } |
| enum | TransformTarget { TRANSFORM_VIEW =0 , TRANSFORM_RIGID , TRANSFORM_TORSION , TRANSFORM_ANGLE , TRANSFORM_ROTAMER } |
| enum | MapIsoType { ORIGINAL_MAP , DOWNSAMPLED_MAP } |
| enum | RenderPass { STANDARD_RENDER_PASS , GLOW_RENDER_PASS , DEPTH_RENDER_PASS , TRANSPARENT_RENDER_PASS , OVERLAY_RENDER_PASS } |
Functions | |
| void DLLEXPORT_OST_GFX | ExportBitmap (const String &fname, std::string ext, unsigned int width, unsigned int height, unsigned char *data) |
| Bitmap DLLEXPORT_OST_GFX | ImportBitmap (const String &fname, std::string ext="") |
| Color DLLEXPORT_OST_GFX | RGB (float r, float g, float b) |
| Color DLLEXPORT_OST_GFX | RGBb (uchar r, uchar g, uchar b) |
| Color DLLEXPORT_OST_GFX | RGBi (unsigned int r, unsigned int g, unsigned int b) |
| Color DLLEXPORT_OST_GFX | RGBA (float r, float g, float b, float a) |
| Color DLLEXPORT_OST_GFX | RGBAb (uchar r, uchar g, uchar b, uchar a) |
| Color DLLEXPORT_OST_GFX | RGBAi (unsigned int r, unsigned int g, unsigned int b, unsigned int a) |
| Color DLLEXPORT_OST_GFX | HSV (float h, float s, float v) |
| Color DLLEXPORT_OST_GFX | HSVi (int h, int s, int v) |
| Color DLLEXPORT_OST_GFX | HSVA (float h, float s, float v, float a) |
| Color DLLEXPORT_OST_GFX | HSVAi (int h, int s, int v, int a) |
| DLLEXPORT_OST_GFX std::ostream & | operator<< (std::ostream &, const Color &c) |
| def | Stereo (mode, flip=None, alg=None) |
| def | FitToScreen (gfx_ent, width=None, height=None, margin=0.05) |
| def | GostExporter (file, scale=1.0, to_origin=True) |
| def | ColladaExporter (file, scale=1.0, to_origin=True) |
Variables | |
| static const unsigned int | VA_SPHERE_MAX_DETAIL =12 |
| static const unsigned int | VA_ICO_SPHERE_MAX_DETAIL =4 |
| static const unsigned int | VA_CYL_MAX_DETAIL =12 |
| WHITE = RGB(1.0,1.0,1.0) | |
| BLACK = RGB(0.0,0.0,0.0) | |
| GREY = RGB(0.5,0.5,0.5) | |
| RED = RGB(1.0,0.0,0.0) | |
| DARKRED = RGB(0.5,0.0,0.0) | |
| LIGHTRED = RGB(1.0,0.5,0.5) | |
| GREEN = RGB(0.0,1.0,0.0) | |
| DARKGREEN = RGB(0.0,0.5,0.0) | |
| LIGHTGREEN = RGB(0.5,1.0,0.5) | |
| BLUE = RGB(0.0,0.0,1.0) | |
| DARKBLUE = RGB(0.0,0.0,0.5) | |
| LIGHTBLUE = RGB(0.5,0.5,1.0) | |
| YELLOW = RGB(1.0,1.0,0.0) | |
| DARKYELLOW = RGB(0.5,0.5,0.0) | |
| LIGHTYELLOW = RGB(1.0,1.0,0.5) | |
| CYAN = RGB(0.0,1.0,1.0) | |
| DARKCYAN = RGB(0.0,0.5,0.5) | |
| LIGHTCYAN = RGB(0.5,1.0,1.0) | |
| MAGENTA = RGB(1.0,0.0,1.0) | |
| DARKMAGENTA = RGB(0.5,0.0,0.5) | |
| LIGHTMAGENTA = RGB(1.0,0.5,1.0) | |
| PURPLE = MAGENTA | |
| DARKPURPLE = DARKMAGENTA | |
| LIGHTPURPLE = LIGHTMAGENTA | |
| ORANGE = RGB(1.0,0.5,0.0) | |
| DARKORANGE = RGB(0.5,0.25,0.0) | |
| LIGHTORANGE = RGB(1.0,0.75,0.5) | |
| scene | |
| Stereo | |
| typedef boost::shared_ptr<CartoonRenderOptions> CartoonRenderOptionsPtr |
Definition at line 137 of file cartoon_render_options.hh.
| typedef unsigned char ColorMask |
Definition at line 43 of file color_op.hh.
| typedef boost::shared_ptr<CPKRenderOptions> CPKRenderOptionsPtr |
Definition at line 62 of file cpk_render_options.hh.
| typedef boost::shared_ptr<CustomRenderOptions> CustomRenderOptionsPtr |
Definition at line 62 of file custom_render_options.hh.
| typedef std::vector<CylinderPrim> CylinderPrimList |
Definition at line 105 of file gfx_prim.hh.
Definition at line 28 of file entity_fw.hh.
Definition at line 29 of file entity_fw.hh.
Definition at line 33 of file gfx_node_fw.hh.
| typedef std::vector<GfxNodeP> GfxNodeVector |
Definition at line 41 of file gfx_node.hh.
| typedef boost::shared_ptr<GfxObjBase> GfxObjBaseP |
Definition at line 31 of file gfx_object_fw.hh.
Definition at line 33 of file gfx_object_fw.hh.
| typedef unsigned int LineID |
Definition at line 47 of file vertex_array.hh.
| typedef boost::shared_ptr<LineRenderOptions> LineRenderOptionsPtr |
Definition at line 53 of file line_render_options.hh.
| typedef boost::shared_ptr<LineTraceRenderOptions> LineTraceRenderOptionsPtr |
Definition at line 43 of file line_trace_render_options.hh.
Definition at line 44 of file map_iso.hh.
Definition at line 39 of file map_slab.hh.
| typedef std::vector<GfxNodeP> NodePtrList |
Definition at line 34 of file gfx_node_fw.hh.
| typedef unsigned int QuadID |
Definition at line 49 of file vertex_array.hh.
| typedef std::vector<RenderMode::Type> RenderModeTypes |
| typedef boost::shared_ptr<RenderOptions> RenderOptionsPtr |
Definition at line 38 of file render_options.hh.
| typedef std::vector<SceneObserver*> SceneObserverList |
| typedef boost::shared_ptr<SimpleRenderOptions> SimpleRenderOptionsPtr |
Definition at line 59 of file simple_render_options.hh.
| typedef boost::shared_ptr<SlineRenderOptions> SlineRenderOptionsPtr |
Definition at line 50 of file sline_render_options.hh.
| typedef std::vector<SpherePrim> SpherePrimList |
Definition at line 47 of file gfx_prim.hh.
Definition at line 44 of file surface.hh.
| typedef std::vector<SymmetryOp> SymmetryOpList |
Definition at line 45 of file symmetry_node.hh.
| typedef std::vector<TextPrim> TextPrimList |
Definition at line 117 of file gfx_prim.hh.
| typedef boost::shared_ptr<TraceRenderOptions> TraceRenderOptionsPtr |
Definition at line 60 of file trace_render_options.hh.
| typedef unsigned int TriID |
Definition at line 48 of file vertex_array.hh.
| typedef boost::shared_ptr<UniformColorOp> UniformColorOpP |
Definition at line 57 of file uniform_color_op.hh.
| typedef unsigned int VertexID |
Definition at line 46 of file vertex_array.hh.
| enum ColorBit |
| Enumerator | |
|---|---|
| DETAIL_COLOR | |
| MAIN_COLOR | |
Definition at line 38 of file color_op.hh.
| enum InputCommand |
| enum InputDevice |
| enum MapIsoType |
| Enumerator | |
|---|---|
| ORIGINAL_MAP | |
| DOWNSAMPLED_MAP | |
Definition at line 38 of file map_iso.hh.
| enum RenderPass |
Definition at line 27 of file render_pass.hh.
| enum TransformTarget |
| def ost.gfx.ColladaExporter | ( | file, | |
scale = 1.0, |
|||
to_origin = True |
|||
| ) |
Definition at line 407 of file __init__.py.
| void DLLEXPORT_OST_GFX ost::gfx::ExportBitmap | ( | const String & | fname, |
| std::string | ext, | ||
| unsigned int | width, | ||
| unsigned int | height, | ||
| unsigned char * | data | ||
| ) |
| def ost.gfx.FitToScreen | ( | gfx_ent, | |
width = None, |
|||
height = None, |
|||
margin = 0.05 |
|||
| ) |
Setup camera such that it is centered on the graphical entity and the entity fits the entire viewport. The longest axes of the entity are aligned along the x- and y- axes of the screen. :param gfx_ent: The graphical entity :type gfx_ent: str or :class:`Entity`
Definition at line 69 of file __init__.py.
| def ost.gfx.GostExporter | ( | file, | |
scale = 1.0, |
|||
to_origin = True |
|||
| ) |
Definition at line 401 of file __init__.py.
| Color DLLEXPORT_OST_GFX ost::gfx::HSV | ( | float | h, |
| float | s, | ||
| float | v | ||
| ) |
HSV color spec from floats.
h: Hue from 0 to 1 (0=red, 2/6=green, 4/6=blue) outside values are modulus 1, not clamped s: Saturation from 0 (no color) to 1 (full color) outside values are clamped v: Value from 0 (no light, black) to 1 (full light) outside values are clamped
out-of-bounds values are perfectly fine, as they are sometimes needed in hsv gradients, e.g.
g1=gfx.Gradient([gfx.HSV(-60.0/360.0,1,1),gfx.HSV(60.0/360.0,1,1)]) g1.hsv_mode=True g2=gfx.Gradient([gfx.HSV(300.0/360.0,1,1),gfx.HSV(420.0/360.0,1,1)]) g2.hsv_mode=True
both will blend from purple to yellow via red
| Color DLLEXPORT_OST_GFX ost::gfx::HSVA | ( | float | h, |
| float | s, | ||
| float | v, | ||
| float | a | ||
| ) |
HSVA color spec from floats.
see HSV(float,float,float); alpha from 0 to 1
| Color DLLEXPORT_OST_GFX ost::gfx::HSVAi | ( | int | h, |
| int | s, | ||
| int | v, | ||
| int | a | ||
| ) |
HSVA color spec from integers.
see HSVi(int, int, int); alpha from 0 to 100
| Color DLLEXPORT_OST_GFX ost::gfx::HSVi | ( | int | h, |
| int | s, | ||
| int | v | ||
| ) |
HSV color spec from integers.
h: Hue from 0 to 359 (0=red, 120=green, 240=blue) outside values are modulus 360, not clamped s: Saturation from 0 (no color) to 100 (full color) outside values are clamped v: Value from 0 (no light, black) to 100 (full light) outside values are clamped
signed integers on purpose, allows negative values to be used for hsv gradients, see comments for HSV(float,float,float)
| Bitmap DLLEXPORT_OST_GFX ost::gfx::ImportBitmap | ( | const String & | fname, |
| std::string | ext = "" |
||
| ) |
| DLLEXPORT_OST_GFX std::ostream& ost::gfx::operator<< | ( | std::ostream & | , |
| const Color & | c | ||
| ) |
string form
| Color DLLEXPORT_OST_GFX ost::gfx::RGB | ( | float | r, |
| float | g, | ||
| float | b | ||
| ) |
RGB color spec from floats (0.0-1.0)
| Color DLLEXPORT_OST_GFX ost::gfx::RGBA | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
RGBA color spec from floats (0.0-1.0)
RGBA color spec from bytes (0-255)
| Color DLLEXPORT_OST_GFX ost::gfx::RGBAi | ( | unsigned int | r, |
| unsigned int | g, | ||
| unsigned int | b, | ||
| unsigned int | a | ||
| ) |
RGBA color spec from integers (0-65535)
| Color DLLEXPORT_OST_GFX ost::gfx::RGBb | ( | uchar | r, |
| uchar | g, | ||
| uchar | b | ||
| ) |
RGB color spec from bytes (0-255)
| Color DLLEXPORT_OST_GFX ost::gfx::RGBi | ( | unsigned int | r, |
| unsigned int | g, | ||
| unsigned int | b | ||
| ) |
RGB color spec from integers (0-65535)
| def ost.gfx.Stereo | ( | mode, | |
flip = None, |
|||
alg = None |
|||
| ) |
Stereo control :param mode: 0=off, 1=quad-buffered, 2=interlaced :type mode: int :param flip: invert order of left/right display :type flip: bool :param alg: stereo algorithm (0 or 1) :type param: int
Definition at line 51 of file __init__.py.
| BLACK = RGB(0.0,0.0,0.0) |
Definition at line 24 of file __init__.py.
| BLUE = RGB(0.0,0.0,1.0) |
Definition at line 32 of file __init__.py.
| CYAN = RGB(0.0,1.0,1.0) |
Definition at line 38 of file __init__.py.
| DARKBLUE = RGB(0.0,0.0,0.5) |
Definition at line 33 of file __init__.py.
| DARKCYAN = RGB(0.0,0.5,0.5) |
Definition at line 39 of file __init__.py.
| DARKGREEN = RGB(0.0,0.5,0.0) |
Definition at line 30 of file __init__.py.
| DARKMAGENTA = RGB(0.5,0.0,0.5) |
Definition at line 42 of file __init__.py.
| DARKORANGE = RGB(0.5,0.25,0.0) |
Definition at line 48 of file __init__.py.
| DARKPURPLE = DARKMAGENTA |
Definition at line 45 of file __init__.py.
| DARKRED = RGB(0.5,0.0,0.0) |
Definition at line 27 of file __init__.py.
| DARKYELLOW = RGB(0.5,0.5,0.0) |
Definition at line 36 of file __init__.py.
| GREEN = RGB(0.0,1.0,0.0) |
Definition at line 29 of file __init__.py.
| GREY = RGB(0.5,0.5,0.5) |
Definition at line 25 of file __init__.py.
| LIGHTBLUE = RGB(0.5,0.5,1.0) |
Definition at line 34 of file __init__.py.
| LIGHTCYAN = RGB(0.5,1.0,1.0) |
Definition at line 40 of file __init__.py.
| LIGHTGREEN = RGB(0.5,1.0,0.5) |
Definition at line 31 of file __init__.py.
| LIGHTMAGENTA = RGB(1.0,0.5,1.0) |
Definition at line 43 of file __init__.py.
| LIGHTORANGE = RGB(1.0,0.75,0.5) |
Definition at line 49 of file __init__.py.
| LIGHTPURPLE = LIGHTMAGENTA |
Definition at line 46 of file __init__.py.
| LIGHTRED = RGB(1.0,0.5,0.5) |
Definition at line 28 of file __init__.py.
| LIGHTYELLOW = RGB(1.0,1.0,0.5) |
Definition at line 37 of file __init__.py.
| MAGENTA = RGB(1.0,0.0,1.0) |
Definition at line 41 of file __init__.py.
| ORANGE = RGB(1.0,0.5,0.0) |
Definition at line 47 of file __init__.py.
| PURPLE = MAGENTA |
Definition at line 44 of file __init__.py.
| RED = RGB(1.0,0.0,0.0) |
Definition at line 26 of file __init__.py.
| scene |
Definition at line 394 of file __init__.py.
| Stereo |
Definition at line 395 of file __init__.py.
|
static |
Definition at line 29 of file vertex_array_helper.hh.
|
static |
Definition at line 28 of file vertex_array_helper.hh.
|
static |
Definition at line 27 of file vertex_array_helper.hh.
| WHITE = RGB(1.0,1.0,1.0) |
Definition at line 23 of file __init__.py.
| YELLOW = RGB(1.0,1.0,0.0) |
Definition at line 35 of file __init__.py.