예제 #1
0
bool
AgeBlueprint::setup(const search::fef::IIndexEnvironment &env,
                    const search::fef::ParameterList &params)
{
    _attribute = params[0].getValue();
    defineInput("now");

    describeOutput("out", "The age of the document, in seconds.");
    env.hintAttributeAccess(_attribute);
    return true;
}
예제 #2
0
SAGetRandomAnnotation::SAGetRandomAnnotation()
   : StoryAction( "SAGetRandomAnnotation" )
   , m_out( NULL )
   , m_spawnPoint( false )
{
   ThreadSystem& threadSystem = TSingleton< ThreadSystem >::getInstance();
   if ( threadSystem.getCurrentThread().m_serializationInProgress == false )
   {
      defineInput( new SAVoidInput( "In" ) );

      m_out = new SAAnnotationOutput( "Out" );
      defineOutput( m_out );
   }
}
예제 #3
0
파일: MNTexture.cpp 프로젝트: dabroz/Tamy
MNTexture::MNTexture( const char* name, Texture* texture )
: MaterialNode( name )
   , m_texture( texture )
   , m_uvInput( NULL )
   , m_output( NULL )
   , m_renderableTexture( new RenderableTexture() )
{
   if ( !IS_BEING_SERIALIZED() )
   {
      m_uvInput = new MSVec2Input( "UV" );
      defineInput( m_uvInput );

      m_output = new MSColorOutput( "Color" );
      defineOutput( m_output );
   }
}