HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ROP_SohoThumbnail.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: ROP_SohoThumbnail.h ( ROP Library, C++)
7  *
8  * COMMENTS: Class to render a thumbnail using soho without using a ROP
9  * output driver.
10  */
11 
12 #ifndef __ROP_SohoThumbnail__
13 #define __ROP_SohoThumbnail__
14 
15 #include "ROP_API.h"
16 #include <iosfwd>
17 #include <UT/UT_String.h>
18 
19 class GU_Detail;
20 class OP_Node;
21 class ROP_SohoOutput;
22 
24 public:
25  ROP_SohoThumbnail(OP_Node *material);
26  virtual ~ROP_SohoThumbnail();
27 
28  bool render(std::ostream &error, bool foreground);
29 
30  void setPicture(const char *fname) { myPicture.harden(fname); }
31  void setRes(int res) { myRes = res; }
32 
33  // Determine the soho script and command for a given shop
34  static bool determineShopType(OP_Node *material,
35  UT_String &soho_shopstyle,
36  UT_String &soho_script,
37  UT_String &soho_pipecmd);
38 
39  // Create sphere geometry used for thumbnails
40  static GU_Detail *createDefaultSphere();
41 
42 private:
43  OP_Node *myMaterialNode;
44  UT_String myPicture;
45  int myRes;
46 };
47 
48 #endif
49 
void setRes(int res)
IFDmantra you can see code vm_image_mplay_direction endcode When SOHO starts a render
Definition: HDK_Image.dox:266
#define ROP_API
Definition: ROP_API.h:10
void setPicture(const char *fname)